[Asterisk-Users] Forwarding SIP over IAX problem: No One Available

Leif Madsen leif at radiokaos.com
Sun Sep 28 17:35:48 MST 2003


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 at nattedbox/55555 at from-sip") in new stack
     -- Called madsen:password at nattedbox/55555 at 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 at 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 at 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 at nattedbox/18924 at intern)
exten => 55555,1,Dial(IAX2/madsen:password at nattedbox/55555 at intern)

iax.conf
--------
[general]
port=5036
bindaddr=0.0.0.0

register => madsen:password at 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 at fwd.pulver.com/18924
register=55555:password at 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.




More information about the asterisk-users mailing list