<div dir="ltr">But then I see an obvious problem on doing ti with iptables.<br><br>Nat devices will not allow the incoming packet from openser to the UAC since the original packet went from the client to port 5060 and the reply is coming from 5090...<br>
<br><div class="gmail_quote">On Thu, Oct 9, 2008 at 10:17 AM, David Villasmil <span dir="ltr"><<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">Thanks for answering, Bogdan.<br><br>On SIP level I should think. I DO listen on both ports, the probltm is that SIP simply doesn't work on port 5060 with some routers, and short of updating all router's frimware this is the only solution available. I can't touch the routers or the clients :S<br>
<br>I've tried redirects with<br><br>$ru="sip:<a href="http://sip.domain.com:5090" target="_blank">sip.domain.com:5090</a>"; # also with $ru="<a href="http://sip.domain.com:5090" target="_blank">sip.domain.com:5090</a>";<br>
sl_send_reply("302", "<span>Redirect</span> to SIP provider");<br>
exit;<br><br>Don't know much about iptables, but if it CAN be done there, how would I do it?<br><br>Thanks<br><font color="#888888"><br>David</font><div><div></div><div class="Wj3C7c"><br><div class="gmail_quote">On Wed, Oct 8, 2008 at 9:07 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi David,<br>
<br>
Do you want to redirect at SIP level or at IPtables level?<br>
<br>
Why don't you listen on both ports from opensips?<br>
<br>
Regards,<br>
Bogdan<br>
<br>
David Villasmil wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>
Anyone knows how to redirect from port 5060 to e.g. 5090?<br>
a simple redirect simply doesn't work.<br>
<br>
thanks to all<br>
<br>
David<br>
<br></div></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</blockquote>
<br>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div>