Local Port for IAXMODEM and IAX2 PEERS - Bug?


#1

Hi

I install an IAXMODEM on Port 4570, actual Version from the source.
In Asterisk (10 Beta 2), I config the iax.conf

[iaxmodem]
type=friend
secret=password
port=4570
host=10.11.1.20
context=fax-out
requirecalltokel=no

The asterisk is on 10.11.1.20 - same IP, other Port

[general]
;bindport=4580
bindaddr=10.11.1.20:4580

So … core restart now

epa-nag-01*CLI> iax2 show peers
Name/Username Host Mask Port Status Description
iaxmodem 10.11.1.20 (S) 255.255.255.255 4569 Unmonitored
1 iax2 peers [0 online, 0 offline, 1 unmonitored]

ömmmm ?!?!?
This looks like "when the peer is on the same IP, the Port is 4569"
I can config, what I want - the Port of the “local” Peer is ALLWAYS 4569.
Other Peers (like SIP Gateway, the Digium Demo Peer) are config correct to Port xy.

Solution
The IAXMODEM is Port 4569
The asterisk IAX Port is 4580
then the peer is correct
but when I add a second peer (2nd IAXMODEM for 2nd channel) … it’s on 4569 and not on the [IAXMODEM2] Port.

?!??!??!!!?

Only local ports, when I crerate an outside IP/Port it runs with the correct Port.

Best regards

MH__