[asterisk-users] Update (IAX Trunking Help)
Alejandro Kauffmann
akauffma at prodigy.net.mx
Wed Oct 8 19:04:37 CDT 2008
Steve Anness wrote:
> I posted earlier in the day about needed help with IAX trunking. I did
> some more reading and made some more changes.
>
> Here is what I have thus far:
>
> Iax.conf on one server
>
> [general]
> bindport = 4569
> bindaddr = 0.0.0.0
> disallow=all
> allow=ulaw
> allow=alaw
> allow=gsm
> mailboxdetail=yes
>
> [vvfarm]
> type=friend
> username=colo
> secret=testpassword
> auth=plaintext
> host=64.194.211.170
> context=iax-incoming
> peercontext=vvfarm-extensions
> qualify=yes
> trunk=yes
>
> Extensions.conf on the same server
>
> [iax-incoming]
> exten => _###,1,Dial(SIP/17${EXTEN}-1,20)
>
> [remote-extensions]
>
> exten => _1XXXX,1,Dial(SIP/17${EXTEN}-1,20)
> exten => _1XXXX,n,Voicemail(${EXTEN:0:3}|su)
> exten => _1XXXX,n,Dial(SIP/${EXTEN}-1)
>
> exten => _11XXX,1,Dial(iax2/vvfarm/${EXTEN:2}-1,20)
>
> Iax.conf on server B
>
> [general]
> bindport = 4569
> bindaddr = 0.0.0.0
> disallow=all
> allow=ulaw
> allow=alaw
> allow=gsm
> mailboxdetail=yes
>
> [colo]
> type=friend
> username=vvfarm
> secret=testpassword
> auth=plaintext
> host=72.249.129.91
> context=iax-incoming
> peercontext=remote-extensions
> qualify=yes
> trunk=yes
>
> Extensions.conf on server B
>
> [vvfarm-extensions]
> exten => _1XX,1,Dial(SIP/${EXTEN}-1,20)
> exten => _1XX,n,Voicemail(${EXTEN:0:3}|su)
> exten => _1XX,n,Dial(SIP/${EXTEN}-1)
>
> exten => _17XXX,1,Dial(iax2/colo/${EXTEN}-1,20)
>
> [iax-incoming]
>
> exten => _XXX,1,Dial(SIP/${EXTEN}-1,20)
>
> The error I am getting when trying to call from Server A to Server B is
>
> [Oct 8 17:13:00] NOTICE[3616]: chan_iax2.c:7367 socket_process:
> Rejected connect attempt from 72.249.129.91, who was trying to reach
> '127-1 at vvfarm-extensions'
>
> The error I am getting when trying to call from server B to Server A is
>
> [Oct 8 17:26:46] NOTICE[3115]: chan_iax2.c:7332 socket_process:
> Rejected connect attempt from 64.194.211.170, who was trying to reach
> '17119-1 at remote-extensions'
>
> What have I done wrong? Why won’t it dial 17119-1 and 127-1, respectfully.
>
> Steve Anness
Your patterns don't match. You are sending 127-1 at vvfarm-extensions, but
vvfarm-extensions has no pattern xxx-1. Same problem in the other
direction. Try changing the dial statement in server A from:
exten => _11XXX,1,Dial(iax2/vvfarm/${EXTEN:2}-1,20)
to:
exten => _11XXX,1,Dial(iax2/vvfarm/${EXTEN:2},20)
and in server B from:
exten => _17XXX,1,Dial(iax2/colo/${EXTEN}-1,20)
to:
exten => _17XXX,1,Dial(iax2/colo/${EXTEN},20)
Alex
More information about the asterisk-users
mailing list