<div dir="ltr"><div><div>Hi Razvan,<br></div>in the meantime (yesterday), the problem was solved by using :<br>force_send_socket(tcp:192.168.12.175);<br></div><div>before t_relay()<br></div><div>In my database (i have 3 rows in load_balancer table only) it is so:<br></div><div>sip\:192.168.15.92 <br>(\ as escape character for ":" DBTEXT syntax)<br></div><div>so, i think, it doesnt provide the transport parameter.<br></div><div>Thanks for hack idea ! It looks as better solution than mine: should i use it ? (or stay with force_send_socket(tcp ?)<br></div><div>best regards<br></div><div>Mirko<br><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 20, 2018 at 9:07 AM, Răzvan Crainea <span dir="ltr"><<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, Mirko!<br>
<br>
If you provision a UDP URI in the database, then the outgoing INVITE will be sent as UDP.<br>
If you want to preserve the protocol, regardless the URI's protocol, you'll have to explicitely hack it in the script by altering the destination URI, something like:<br>
<br>
if ($rP == "TCP")<br>
$du = $du + ";transport=tcp";<br>
<br>
Note that this hack presumes that the URIs in your database are always provisioned without a transport parameter;<br>
<br>
Hope this helps.<br>
<br>
Best regards,<br>
Răzvan<div><div class="h5"><br>
<br>
On 02/19/2018 02:32 PM, Mirko Csiky wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi guys,<br>
i am playing with opensips and load balancer module, and it seems like inital TCP invites will be forwarded (opensips relay after load_balance(...) ) as UDP ? Can this behaviour be deactivated ? (i tried to find some configuration options, but without success)<br>
It is also possible that my config is not ok and it is so because of misconfiguration ...<br>
Can anybody help me here ?<br>
best regards<br>
Mirko<br>
<br>
<br></div></div>
______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
Răzvan Crainea<br>
OpenSIPS Core Developer<br>
<a href="http://www.opensips-solutions.com" rel="noreferrer" target="_blank">http://www.opensips-solutions.<wbr>com</a><br>
OpenSIPS Summit 2018<br>
<a href="http://www.opensips.org/events/Summit-2018Amsterdam" rel="noreferrer" target="_blank">http://www.opensips.org/events<wbr>/Summit-2018Amsterdam</a><br>
<br>
______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a><br>
</font></span></blockquote></div><br></div>