[HELP] changing port asterisk listens on


#1

is it possible to change the port that the asterisk box will listen for iax softphones to connect on becides the default 4569?


#2

In iax.conf :

bindport=


#3

[quote=“WillKemp”]In iax.conf :

bindport=[/quote]

can you have multiple ones listed?


#4

Doesn’t look like it.

However, if you used NAT on the asterisk box, you could redirect other ports to the IAX2 port.


#5

i think you can have multiple in cvs-head. (im unsure though but its worth googling for, it might be only for ip’s or only for sip).


#6

Maybe you’re right. I’ve got a recent (maybe two weeks old) CVS-head version running here and the iax.conf file from that version has the following:

[general]
;bindport=4569 ; bindport and bindaddr may be specified
; ; NOTE: bindport must be specified BEFORE bindaddr
; ; or may be specified on a specific bindaddr if followed by
; ; colon and port (e.g. bindaddr=192.168.0.1:4569)
;bindaddr=192.168.0.1 ; more than once to bind to multiple
; ; addresses, but the first will be the
; ; default

The implication here is that there could be more than one port - if they’re specified as part of bindaddr statements.

e.g.:

bindaddr=192.168.0.1:4569
bindaddr=192.168.0.1:4570
bindaddr=192.168.0.1:4571

etc. Or whatever.

This will probably only work with recent CVS versions though.