[asterisk-users] changing sip port

Edwin Lam edwin.lam at officegeneral.com
Mon Nov 15 17:23:34 CST 2010


On 11/11/10 2:25 PM, Baha @ SH wrote:
> How can I run the sip service on asterisk on another port beside 5080?
>
> I mean asterisk will still take sip requests on port:5080 and another custom port,
> lets say port:6080

you can only configure 1 listening port in sip.conf. however you
can use port forwarding on OS level to achieve that.

iptables -t nat -I PREROUTING -i <you incoming interface> -d <your IP addr> -p udp 
-m udp --dport 6080  -j DNAT --to-destination <your ip addr>:5060

p.s. the default SIP port is 5060.

-- 
Edwin Lam <edwin.lam at officegeneral.com>
Systems Engineer, OfficeWyze, Inc.
Ph: +1 415 439 4988 Fax: +1 415 283 3370
http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=0xD6506D20




More information about the asterisk-users mailing list