[asterisk-users] Dialing out using SIP terminal

Allan Kamau kamauallan at yahoo.com
Thu Aug 17 02:30:26 MST 2006


Hi all,
I have a VoIP GSM (SIP) terminal that I have
successfully configured and registered in asterisk,
would like to:
a)Answer calls via asterisk coming from this terminal.
b)Route outbound calls to this terminal.

What Dial command do I use so as to have the sip
terminal dial an outside line, for example when using
Zap, I use the following commands successfully.
<extension.conf>
[from-sip]
exten=>20,1,Dial(Zap/4/0w10136)
exten=>_22.,1,Dial(Zap/4/0w${EXTEN:2},5,r)

If I use the command below in an attempt to dial a
number 0729932165 on the SIP/2006 channel, the call is
answered by the terminal but doesn't dial out.
exten=>21,1,Dial(SIP/2006/0729932165,5,r)



My current configuration looks like this
<sip.conf>
[2006]
type=friend
username=2006
secret=2006
context=voip_gsm		; Where to start in the dialplan
when this phone calls
callerid="Allan" <2006>	; Full caller ID, to override
the phones config
host=dynamic
defaultip=192.168.0.100

<extension.conf>
[voip_gsm]
exten=>s,1,NoOp(${EXTEN})
exten=>s,2,NoOp(${CALLERID})
exten=>s,3,Dial(SIP/2001,5,Ttm)	;dial a sip hardphone
configured in my Asterisk installation.
exten=>s,4,Voicemail(u2001 at some_voicemail_context)
exten=>s,5,Hangup
exten=>s,104,Voicemail(b2001 at some_voicemail_context)
exten=>s,105,Hangup

[from-sip]
exten=>21,1,Dial(SIP/2006/0729932165,5,r)


Allan.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the asterisk-users mailing list