[Asterisk-Users] sip call using name in sip.conf

John Fraizer tvo at enterzone.net
Sat May 22 16:52:45 MST 2004


Randy Bush wrote:

> i try to place a call
> 
>     exten => _X.,1,Dial(SIP/${EXTEN}@foo:5061,60,Ttr)
> 
> where sip.conf has an entry
> 
>     [foo]
>     secret=torture
>     callerid="local ext 103" <19146665555>
>     type=friend
>     fromuser=asterisk
>     auth=both
>     host=dynamic
>     canreinvite=yes
>     context=in-914
>     mailbox=001
> 

Randy,

Try the following:

exten => _X.,1,Dial(SIP/foo:5061,60,Ttr)

This will cause asterisk to send the call to sip peer "foo".

If you're trying to send the call to a specific extension on host 
"foo.bar", you'll need to do something like this:

exten => _X.,1,Dial(SIP/${EXTEN}@foo.bar:5061,60,Ttr)

If the other side is an * box as well, I highly recommend you use IAX2 
and not SIP.

John



More information about the asterisk-users mailing list