Leif Madsen
2003-Sep-28 17:35 UTC
[Asterisk-Users] Forwarding SIP over IAX problem: No One Available
I'm hoping someone can help me out with this. I am basically just
trying to separate my outbound and inbound calls into separate contexts
instead of having everything in a single context. Any help would be
appreciated. Perhaps I've missed something really obvious....
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:password@nattedbox/55555@from-sip") in new stack
-- Called madsen:password@nattedbox/55555@from-sip
-- 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:password@liveipbox/${EXTEN}@intern)
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,Hangup
exten => 55555,1,Dial(${PHONE1},15,t)
exten => 55555,2,Hangup
iax.conf
--------
[general]
port=5036
bindaddr=0.0.0.0
register => madsen:password@liveipbox
[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:1}@fwd.pulver.com)
exten => _7.,4,Playback(invalid)
[from-sip]
exten => 18924,1,Dial(IAX2/madsen:password@nattedbox/18924@intern)
exten => 55555,1,Dial(IAX2/madsen:password@nattedbox/55555@intern)
iax.conf
--------
[general]
port=5036
bindaddr=0.0.0.0
register => madsen:password@nattedbox
[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:password@fwd.pulver.com/18924
register=55555:password@fwd.pulver.com/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.
Leif Madsen
2003-Sep-29 19:38 UTC
[Asterisk-Users] Forwarding SIP over IAX problem: No One Available
Leif Madsen wrote:> I'm hoping someone can help me out with this. I am basically just > trying to separate my outbound and inbound calls into separate contexts > instead of having everything in a single context. Any help would be > appreciated. Perhaps I've missed something really obvious....Yah, it was something obvious, hostnames weren't resolving correctly, testing with simple IP addresses in the place of the hostnames fixed it. Sheesh. This is just for archival purposes. The .confs in the previous message "should" work (could still be problems, as I just remade them again tonight, and didn't thoroughly test those ones in the previous post) Thanks, Leif Madsen.