NSLU2-Linux
view · edit · print · history

How to use a Gizmo Project account with asterisk

Add the following in sip.conf and replace YourGizmoSIPnumber and YourGizmoPassword with your 11 digits gizmo SIP number and password:

; register to gizmo
register => YourGizmoSIPnumber:YourGizmoPassword@proxy01.sipphone.com/YourGizmoSIPnumber

[gizmo]
type=friend
insecure=very
context=from-gizmo
username=YourGizmoSIPnumber
secret=YourGizmoPassword
host=proxy01.sipphone.com
fromuser=YourGizmoSIPnumber
fromdomain=proxy01.sipphone.com
nat=yes
canreinvite=no
disallow=all
allow=ulaw
allow=gsm
dtmfmode=rfc2833

Add the following in extensions.conf:

; outgoing gizmo
exten => _9.,1,SetCallerID("your name" <YourGizmoSIPnumber>)
exten => _9.,2,Dial(SIP/${EXTEN:1}@gizmo,120,T)
exten => _9.,3,Congestion
exten => _9.,103,Congestion

[from-gizmo]
exten => YourGizmoSIPnumber,1,Macro(stdexten,${INRINGSEXT},${INRINGSDEV})
exten => YourGizmoSIPnumber,2,Hangup

Note:
This will allow you to make outgoing calls to Gizmo by preceding the called number with 9. The stdexten macro assumes that the variables INRINGSEXT, INRINGSDEV are defined in your dial plan and represents the extension and device to ring when incoming calls are received from Gizmo.

How to use make calls to yahoo accounts using the gizmo account from asterisk

define a yahoo context in sip.conf:

[yahoo.com-out]
type=peer
username=YourGizmoSIPnumber
secret=YourGizmoPassword
host=yahoo.com
outboundproxy=proxy01.sipphone.com
canreinvite=no
dtmfmode=rfc2833

and now create an extension on your extensions.conf:

exten => YourExtensionForYourYahooBuddy,1,Dial(SIP/YouYahooBuddyID@yahoo.com-out,120,T)
Check more at www.gtalk2voip.com

view · edit · print · history · Last edited by osas.
Originally by osas.
Page last modified on March 18, 2007, at 04:28 PM