[asterisk-users] Update (IAX Trunking Help)
Michiel van Baak
michiel at vanbaak.info
Thu Oct 9 11:50:24 CDT 2008
On 10:21, Thu 09 Oct 08, Steve Anness wrote:
> First off thank you for your help, using your help in conjunction with a
> couple of my own changes it partially worked. I got rid of the iax-incoming
> context, it seemed useless. I may be wrong in that assumption.
>
> Looking back at what I have now:
>
> Extensions.conf on server A
>
> [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},20)
>
> Extensions.conf on Server B
>
> [remote-extensions]
>
>
> exten => _17XXX,1,Dial(SIP/17${EXTEN}-1,20)
> exten => _17XXX,n,Voicemail(${EXTEN:0:3}|su)
> exten => _17XXX,n,Dial(SIP/${EXTEN}-1)
>
> exten => _11XXX,1,Dial(iax2/vvfarm/${EXTEN:2},20)
> exten => _11XXX,n,Voicemail(${EXTEN:2:3}|su)
>
> I can call from server B to Server A I added the voicemail line, however;
> it isn't working like it should. We have things set-up, as you can see, if
> someone dials 327 they get the voicemail box for 127. When I dial 11127
> from Server B it rings but when it gets time for voicemail to pick up it
> tries calling 127 instead of 327 looking for a voicemail box. I was under
> the impression ${EXTEN:2:3} should cut off the 11 (that part works) and
> change the first variable to a 3 (that part doesn't work)
>
> I still can't make calls from Server A to Server B I still get the same
> error
>
> [Oct 9 10:26:05] NOTICE[3118]: chan_iax2.c:7773 socket_process: Rejected
> connect attempt from 64.194.211.170, request '17110-1 at remote-extensions'
> does not exist
>
>
> 17110-1 does exist, I can pick up the phone connected on server B and dial
> 17110 and get 17110-1.
No, it doesn't.
You only have 17XXX
Get rid of the -1 or add the -1 to the exten on serverB
>
> Thanks again for your help.
>
> Steve
>
> On 10/8/08 7:04 PM, "Alejandro Kauffmann" <akauffma at prodigy.net.mx> wrote:
>
> > 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
> >
> > _______________________________________________
> > -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> >
> > asterisk-users mailing list
> > To UNSUBSCRIBE or update options visit:
> > http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
--
Michiel van Baak
michiel at vanbaak.eu
http://michiel.vanbaak.eu
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x71C946BD
"Why is it drug addicts and computer aficionados are both called users?"
More information about the asterisk-users
mailing list