[Asterisk-Dev] Multiple ports for SIP listener + minor bug

Reini Urban r.urban at inode.at
Thu Jun 5 04:32:58 MST 2003

John Todd wrote:
> This is a point of minor inconvenience: is it possible to get chan_sip 
> to listen on multiple ports?  I have an instance where a phone is 
> blocked from using port 5060 (well, not blocked, but "inappropriately 
> translated" by a PIX) and I'd like to simply skip around the offending 
> firewall with a different port number.  However, at this point that 
> seems to require Asterisk to be launched in a different thread with 
> "port=" set in sip.conf, which seems to be a bit of overkill.   A better 
> method would be to have a comma-separated list of ports that SIP 
> requests would be transmitted/received on.

I successfully use asterisk's sip listening on port 5061 (sip.conf), 
because 5060 is for ser which redirects to asterisk on port 5061 solely 
for voicemail.
there's no seperate thread for the other sip channel. you mean another 
process family?

> PS: Line 1808 of chan_sip.c seems to hardcode 5060 as the port, even 
> though there is a #define at the top of the file that lists the 
> "default" port for SIP in a more flexible default manner.

Good catch!
I missed that.
Reini Urban - Entwicklung - http://inode.at

More information about the asterisk-dev mailing list