Yes, you are correct. I understand that the port in the parameter is the destination, I just was including exactly what we do. And yes, what we are experiencing is just what you say. We are binding on port 5060 both UDP and TCP to receive traffic. Is it possible to force an outbound request on TCP to have a source port of 5060, instead of just requesting one from the OS? <br clear="all">
<br>-dg<br>
<br><br><div class="gmail_quote">On Wed, Aug 18, 2010 at 7:53 AM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Daniel,<br>
<br>
the param of t_relay() is the destination where to send, not the source.<br>
In UDP, the source will be all the time one of the defined interfaces,<br>
but for TPC/TLS, when firing a new connection, the kernel allocates a<br>
new random port for that - I guess this is the case for you, right ?<br>
<div class="im"><br>
Regards,<br>
Bogdan<br>
<br>
Daniel Goepp wrote:<br>
</div><div><div></div><div class="h5">> We are using:<br>
><br>
> t_relay("tcp:<ip_address>:5060")<br>
><br>
> However this causes the source port to be someone unpredictable. But<br>
> if we use UDP, it always comes from 5060 (as we would expect).<br>
><br>
> I'm just looking for some comments on this behavior, and if it is<br>
> expected or a bug.<br>
><br>
> Thanks<br>
><br>
> -dg<br>
</div></div><div><div></div><div class="h5">> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">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>
<br>
<br>
--<br>
Bogdan-Andrei Iancu<br>
OpenSIPS Bootcamp<br>
20 - 24 September 2010, Frankfurt, Germany<br>
<a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">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>
</div></div></blockquote></div><br>