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">&lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;</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">&gt; We are using:<br>
&gt;<br>
&gt; t_relay(&quot;tcp:&lt;ip_address&gt;:5060&quot;)<br>
&gt;<br>
&gt; However this causes the source port to be someone unpredictable.  But<br>
&gt; if we use UDP, it always comes from 5060 (as we would expect).<br>
&gt;<br>
&gt; I&#39;m just looking for some comments on this behavior, and if it is<br>
&gt; expected or a bug.<br>
&gt;<br>
&gt; Thanks<br>
&gt;<br>
&gt; -dg<br>
</div></div><div><div></div><div class="h5">&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;<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>