[asterisk-users] iax2: two users can't authenticate from same ip address

Sean Darcy seandarcy2 at gmail.com
Mon Sep 9 14:29:35 CDT 2013


On 09/09/2013 01:54 PM, Joshua Colp wrote:
> Sean Darcy wrote:
>>
>> home is from the home machine, which registers with the server:
>>
>> register => home:<pwhome>@<serverip>
>>
>> [home]
>> type=friend
>> insecure=port,invite
>> secret=<pwhome> ; same secret as on server
>> context=incoming
>> host=<serverip>
>
> You aren't specifying what username to authenticate as here. Add:
>
> username=home
>
> And give it a go.
>

Excellent! It's so easy to overlook the obvious.

But now I can't call "gn". I can call out from gn, but calling to gn 
dies with Max retries...

Dial("IAX2/home-14358", "IAX2/gn") in new stack
     -- Called IAX2/gn
CLI> iax2 show peers
Name/Username    Host                 Mask             Port 
Status      Description
gn               <gnipaddr>      (D)  255.255.255.255  9007          OK 
(179 ms)
............
[Sep  9 19:11:36] WARNING[530]: chan_iax2.c:3552 __attempt_transmit: Max 
retries exceeded to host <gnipaddr> on IAX2/gn-11311 (type = 6, subclass 
= 11, ts=10018, seqno=1)
     -- Hungup 'IAX2/gn-11311'

Again, what's with this port 9007? Is asterisk assigning it? I thought 
all iax traffic went over 4569.

Of course, this could be a zoiper problem.

sean




More information about the asterisk-users mailing list