[asterisk-users] Fwd: Trouble using 2 IAX2 DiDs provided by different ITSPs

Andrew Joakimsen joakimsen at gmail.com
Fri Dec 1 13:17:17 MST 2006


Your configuration is wrong, IAX is sort of tricky to master. Perhaps you
should stop flooding the list with your messages every few hours? Play
around with user= fromuser= and peer and friend and it should work with a
few tries :) Better yet maybe the ITSP provide sample configfiles?

On 12/1/06, hugolivude <hugolivude at gmail.com> wrote:
>
> Asterisk 1.2.7
> Redhat 9
>
> I have DiDs from two different ITSP both set up as IAX2.  Each one
> works when it's the only one in my iax.conf, but when I have them both
> defined in iax.conf at the same time, only one will work.  My iax.conf
> is provided below.
>
> Any ideas how to fix?  I'd like to use both DiDs!
>
> Thanks,
> H
>
> My iax.conf is below.  When I dial the DiD provided by ITSP_B, the
> other ITSP seems to reject it.  For example when I call the ITSP_B
> DiD, I get the following error message:
>
> Nov 29 21:50:17 NOTICE[23106]: chan_iax2.c:7203 socket_read: Host <IP>
> failed to authenticate as ITSP_A
>
> iax.conf
> ======
> [general]
> register => <my UserID>:<my password>@<ITSP A Server #1 domain>
> register => <my UserID>:<my password>@<ITSP A Server #2 domain>
> register => <my UserID>:<my password>@<ITSP B #1 domain>
> notransfer=yes
> bindport=4569
> bindaddr=0.0.0.0
> bandwidth=low
> disallow=all
> allow=ulaw
> allow=g729
> jitterbuffer=yes
> forcejitterbuffer=no
> tos=lowdelay
> autokill=yes
>
> [ITSP_B]
> context=incoming-iax
> type=friend
> qualify=2000
> host=<ITSP B #1 domain>
> user=<my UserID>
> username=<my UserID>
> auth=md5
> secret=<my password>
> disallow=all
> allow=ulaw
> ;
> ; *** ITSP_A Inbound ***
> [ITSP_A]
> context=incoming-iax
> type=user
> auth=md5
> username=<my UserID>
> secret=<my password>
> disallow=all
> allow=ulaw
> ;
> ; *** ITSP_A Outbound ***
> [ITSP_A-Out]
> type=peer
> host=<ITSP A Server #1 domain>
> auth=md5
> username=<my UserID>
> secret=<my password>
> disallow=all
> qualify=yes
> allow=ulaw
> ;
> [ITSP_A-Out2]
> type=peer
> host=<ITSP A Server #2 domain>
> auth=md5
> username=<my UserID>
> secret=<my password>
> disallow=all
> qualify=yes
> allow=ulaw
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061201/2415df6c/attachment.htm


More information about the asterisk-users mailing list