Here is the network layout:
<remote> <--TDM400P--> <nattedbox> <--IAX--> <liveipbox> <--SIP--> <remote>
This is the error I am getting when someone trys to call be via FWD
(all outbound calling works fine, and inbound has worked before as long as I have everything in the same context, but I am trying to seperate the contexts like in my previous dialplan):
Executing Dial("SIP/fwd.pulver.com2-312e", "IAX2/madsen:[EMAIL PROTECTED]/[EMAIL PROTECTED]") in new stack
-- Called madsen:[EMAIL PROTECTED]/[EMAIL PROTECTED]
-- Hungup 'IAX2[207.61.247.201:4569]/1'
== No one is available to answer at this time
And here are the config files:
*** NAT'd Box ***
extensions.conf --------------- [globals] PHONE1=Zap/1 PHONE1VM=18924
CALLFILENAME=foo FOO=foo
[intern] include => outbound-fwd include => from-sip
[outbound-fwd] exten => _7.,1,Dial(IAX2/madsen:[EMAIL PROTECTED]/[EMAIL PROTECTED]) exten => _7.,2,DISA,no-password|intern
[from-sip]
exten => 18924,1,Dial(${PHONE1},30,t)
exten => 18924,2,Voicemail(u${PHONE1VM})
exten => 18924,3,Hangup
exten => 18924,102,Voicemail(b${PHONE1VM})
exten => 18924,103,Hangupexten => 55555,1,Dial(${PHONE1},15,t)
exten => 55555,2,Hangupiax.conf -------- [general] port=5036 bindaddr=0.0.0.0
register => madsen:[EMAIL PROTECTED]
[madsen] type=friend username=madsen secret=password auth=md5 context=intern host=dynamic
In zapata.conf, the context=intern
*** GW Box ***
extensions.conf --------------- [globals] FWDUSERID=18924 FWDUSERNAME=Leif Madsen
CALLFILENAME=foo FOO=foo
[intern] include => outbound-fwd include => from-sip
[outbound-fwd]
exten => _7.,1,SetCallerID(${FWDUSERID})
exten => _7.,2,SetCIDName(${FWDUSERNAME})
exten => _7.,3,Dial(SIP/${EXTEN:[EMAIL PROTECTED])
exten => _7.,4,Playback(invalid)[from-sip] exten => 18924,1,Dial(IAX2/madsen:[EMAIL PROTECTED]/[EMAIL PROTECTED]) exten => 55555,1,Dial(IAX2/madsen:[EMAIL PROTECTED]/[EMAIL PROTECTED])
iax.conf -------- [general] port=5036 bindaddr=0.0.0.0
register => madsen:[EMAIL PROTECTED]
[madsen] type=friend username=madsen secret=password auth=md5 context=intern host=dynamic
sip.conf -------- [general] disallow=all allow=gsm allow=ulaw allow=alaw context=intern maxexpirey=180 defaultexpirey=160 tos=reliability register=18924:[EMAIL PROTECTED]/18924 register=55555:[EMAIL PROTECTED]/55555
[fwd.pulver.com] type=friend secret=password username=18924 host=fwd.pulver.com
[fwd.pulver.com2] type=friend secret=password username=55555 host=fwd.pulver.com
In zapata.conf the context=intern
Thanks, Leif Madsen.
_______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
