[Asterisk-Users] Asterisk@home doing SIP URI calls

Joao Pereira joao.pereira at fccn.pt
Mon May 22 09:30:18 MST 2006


Hello to all
Im trying to make SIP URI calls with my asterisk at home, and I followed this:
http://slacker.com/~nugget/projects/asterisk/page7

So I putted in extensions.conf:

MYDOMAIN => xxx.xxx.xxx.xxx
MYFQDN => xxx.xxx.xxx.xxx

[macro-uridial]
exten => s,1,NoOp(Outbound SIP URI call ${ARG1})
exten => s,2,SetCIDNum(5125380508)
exten => s,3,Dial(SIP/${ARG1})
exten => s,4,Congestion()


and in extensions_custom.conf :

 [from-internal-custom]
exten => _.,1,NoOp(Incoming Call from house extension ${CALLERID} for 
${EXTEN}@${SIPDOMAIN})
exten => _.,2,GotoIf($[${LEN(${SIPDOMAIN})} = 0]?10)
exten => _.,3,GotoIf($[${SIPDOMAIN} = ${MYDOMAIN}]?10)
exten => _.,4,GotoIf($[${SIPDOMAIN} = ${MYFQDN}]?10)
exten => _.,5,GotoIf($[${SIPDOMAIN} = ${MYFQDN}:5060]?10)
exten => _.,6,NoOp(@${SIPDOMAIN} is remote, forwarding...)
exten => _.,7,Macro(uridial,${EXTEN}@${SIPDOMAIN})
exten => _.,8,HangUp()
exten => _.,10,Goto(noturi,${EXTEN},1)
exten => h,1,HangUp()

[noturi]
include => local
include => trunkld
include => trunkint
include => emergency



Then, I try to call 613 at fwd.pulver.com and the call fails:

asterisk debug:
Looking for 613 in from-internal (domain fwd.pulver.com)
Reliably Transmitting (NAT) to xxx.xxx.xxx.xxx:5060:
SIP/2.0 404 Not Found



If I have "_." in [from-internal-custom] why do the call fails?
Thanks
Joao Pereira





More information about the asterisk-users mailing list