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

Sean Darcy seandarcy2 at gmail.com
Tue Sep 10 18:59:43 CDT 2013


On 09/10/2013 05:27 PM, Joshua Colp wrote:
> Sean Darcy wrote:
>> On 09/10/2013 12:15 PM, Joshua Colp wrote:
>>> Sean Darcy wrote:
>>>> Maybe a different question would be helpful. Let's assume no NAT; the
>>>> server is directly connected with an FQDN. Two iax devices register.
>>>> Does asterisk assign them different ports?
>>>
>>> Asterisk does not assign ports. The IAX2 channel driver, by default,
>>> binds to a single UDP port (4569). As UDP is connectionless there are no
>>> connections. What you see on the console is the *source* IP address and
>>> port of the packets. It's possible that the Amazon stuff is sort of
>>> NATting things to do connection tracking... but that's Amazon land, so
>>> no clue really.
>>>
>>
>> Since no horse is dead enough not to take another beating:
>>
>> If the console is showing the *source* port of the packets. then:
>>
>> does the server send iax packets to that source port, or to 4569?
>
> It sends to the source port if using the registration.
>
>>
>> "home" (which is another asterisk server) shows 4569, while the androids
>> running zoiper show random ports. I assume zoiper puts the source port
>> in an iax packet. But regardless of how zoiper describes its source
>> port, asterisk will only send iax packets on 4569. correct?
>
> It does not put the source port in an IAX packet. It's in the IP header
> itself, outside of IAX. Asterisk will send IAX packets *from* port 4569
> but *to* any host/port.
>

OK, so I only need to open up 4569 incoming, But I need to allow a range 
of outgoing udp ports since zoiper is choosing other udp ports in the IP 
header of the iax registration.

Thanks. Sorry it's taken so long for me to get this.

sean




More information about the asterisk-users mailing list