Randy Bush
2004-May-18 13:31 UTC
[Asterisk-Users] how does a sip://user@dom.ain url come in
if the dns has _sip._tcp.my.dom. SRV 0 0 5060 asterisk.dom.ain. _sip._udp.my.dom. SRV 0 0 5060 asterisk.dom.ain. where asterisk.dom.ain. is an A RR of the asterisk pbx. how does a call to sip://user@my.dom come in to asterisk so i can route it? do i just put in sip.conf [username] context = from-url-username and extensions.com [from-url-username] exten => s,1,Answer exten => _.,1,blahblahblah randy
James H. Cloos Jr.
2004-May-18 14:58 UTC
[Asterisk-Users] how does a sip://user@dom.ain url come in
>>>>> "Randy" == Randy Bush <randy@psg.com> writes:Randy> how does a call to sip://user@my.dom come in to asterisk so i Randy> can route it? I beleive it comes in to extension user in the default context: [default] exten => user,1,whatever... You'll need to look in the variable ${SIPDOMAIN} to differentiate eg user@my.dom from user@dom.ain. -JimC -- James H. Cloos, Jr. <cloos@jhcloos.com> <http://jhcloos.com/voip>