[Asterisk-Users] Problem with IAX2 dialin with portunity

Joshua Colp jcolp at digium.com
Tue May 30 08:41:06 MST 2006


Matthias Fechner wrote:
> Hello Joshua,
> 
> Joshua Colp wrote:
>>> [portunity-out]
>>> type=friend
>>> host=iax.iaxport.de
>>> username=XXXXXXX
>>> secret=YYYYYY
>>> context=incoming-portunity
>>> notransfer=yes
>> Only if the username is specified as portunity-out when the other side dials
>> you. Otherwise your Asterisk has no idea what to authenticate them as so it
>> takes a guess and in the end settles on guest.
> 
> But should not asterisk here see, that the call is comming in from the
> host: host=iax.iaxport.de or from the username=iaxXXXXXX?
> In the SIP configuration I do it this way.
> 
> Or need I to define some other parameters in the section
> [portunity-out] or easily rename it.
> 
> If I get a call, asterisk says the following: (I hope everything is in :) )

The remote side is not sending the username to authenticate as (it's not 
shown in the NEW) so your Asterisk does not know who to authenticate it 
as, and thus chooses guest. As for host based matching - this doesn't 
happen as you might expect. You need to use permit and deny lines to get 
the user entry matched. Check into the sample iax.conf to see how to do 
this.

-- 
Joshua Colp
Software Developer
Digium
P - 256-428-6066
C - 506-878-0147
jcolp at digium.com



More information about the asterisk-users mailing list