Rizwan Hisham
2008-Nov-17 23:54 UTC
[asterisk-users] two sip listening ports for single asterisk
Hi all, We are planning to shift our sip users from one platform to another. (basically from one asterisk server to another). the problem we are facing is that both asterisk servers are using different ports to listen for sip. and both have live customers on them. provisioning their ata's is not a good option for us coz of our settup. we cant just ask the customers to change their ports for registration (many of them dont know what a port is) Is it possible to make single asterisk server listen on two different ports? if there is any other option we can use, plz inform me about it. Thanx in advance. -- Best Regards Rizwan Hisham -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081117/8a33aba7/attachment.htm
Robert McNaught
2008-Nov-18 00:46 UTC
[asterisk-users] two sip listening ports for single asterisk
I am not sure it i possible to make asterisk listen on two different ports. I think you could run 2 asterisk instances on separate ports, but dont know if that is usefult o you. Or you might be able to do something with Iptables firewall software to forward from one port to another and just run asterisk on a single port. eg all traffic to port 5070, re-route it to 5060 Robert On Mon, Nov 17, 2008 at 3:54 PM, Rizwan Hisham <rizwanhasham at gmail.com> wrote:> Hi all, > We are planning to shift our sip users from one platform to another. > (basically from one asterisk server to another). the problem we are facing > is that both asterisk servers are using different ports to listen for sip. > and both have live customers on them. provisioning their ata's is not a > good option for us coz of our settup. we cant just ask the customers to > change their ports for registration (many of them dont know what a port is) > Is it possible to make single asterisk server listen on two different ports? > > if there is any other option we can use, plz inform me about it. > > Thanx in advance. > -- > Best Regards > Rizwan Hisham > > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Matthew J. Roth
2008-Nov-19 05:35 UTC
[asterisk-users] two sip listening ports for single asterisk
Rizwan Hisham wrote:> Is it possible to make single asterisk server listen on two different > ports?Rizwan, There is no way to make a single instance of Asterisk listen on multiple ports. However, you can use an iptables REDIRECT to achieve the same functionality. To redirect a single port with iptables: iptables -t nat -A PREROUTING -i eth0 -p udp --dport 5062 -j REDIRECT --to-ports 5060 This example redirects UPD port 5062 to port 5060, which effectively allows Asterisk to listen on both of them. Remember to save the rule so that it survives a reboot. Regards, Matthew Roth InterMedia Marketing Solutions Software Engineer and Systems Developer