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

Rich Adamson radamson at routers.com
Sat May 22 17:24:52 MST 2004


> i try to place a call
> 
>     exten => _X.,1,Dial(SIP/${EXTEN}@foo:5061,60,Ttr)
                                       ^^^
That "foo" name needs to be changed to an IP address of whatever it
is that is suppose to handle the call. Asterisk is doing a DNS name
lookup and can't resolve it, therefore "no such host".

Also, not sure what :5061 is suppose to represent in your example.


> 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
> 
> i get
> 
>     May 22 23:11:31 WARNING[140400128]: chan_sip.c:902 create_addr: \
> 		    No such host: foo
>     May 22 23:11:31 NOTICE[140400128]: app_dial.c:536 dial_exec: \
> 		    Unable to create channel of type 'SIP'
> 
> the sip service is registered
> 
>     foo/foo      209.20.186.194  (D)  255.255.255.255  5060     Unmonitored
> 
> and i get the same result if it is not dynamic
> 
>     foo/foo      209.20.186.194       255.255.255.255  5061     Unmonitored
> 
> clues appreciated
> 
> randy
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users

---------------End of Original Message-----------------





More information about the asterisk-users mailing list