What i actually do is make asterisk listen on some other port like 5097 and redirect port 5060 to it with iptables like this <br>/sbin/iptables -t nat -A PREROUTING -i eth0 -p udp --dport 5060 -j DNAT --to YOURIPHERE:5097
<br><br>This works very well . If i make asterisk listen on 5060 and redirect say 5097 to 5060 i had lot of problems with firewalled systems ( blocked 5060 by isp ) . Also on blocked end its recommended to use some softphone like xlite which completely allows you to set custom ports on machine itself to listen, taking 5060 completely out of picture .
<br><br><br><div><span class="gmail_quote">On 17/08/07, <b class="gmail_sendername">Steve Totaro</b> <<a href="mailto:stotaro@totarotechnologies.com">stotaro@totarotechnologies.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Steven wrote:<br>> I am curious.<br>><br>> Why would one need to do this?<br>><br>> If a phone connect to 5060 from another port number, asterisk happily works, so why use multiple port on asterisk?<br>>
<br><br>I cannot see the thread history but from the context, I would say<br>because many ISPs block 5060, 25, and others.<br><br>Thanks,<br>Steve Totaro<br><br>_______________________________________________<br>--Bandwidth and Colocation Provided by
<a href="http://www.api-digital.com--">http://www.api-digital.com--</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>