<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-15">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Donato,<br>
<br>
The socket you force for a request will be persistent for the
whole transaction (replies also). Even more, if you use
record_route() for the dialog, the socket will be persistent for
the whole dialog (for all sequential requests). <br>
But again, the important is to force the socket during the
*initial* request. <br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
OpenSIPS Summit 2018
<a class="moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2018Amsterdam">http://www.opensips.org/events/Summit-2018Amsterdam</a>
</pre>
<div class="moz-cite-prefix">On 03/15/2018 11:13 AM, Donato Zito
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:b4c3b8b8-e599-c6f9-f525-7b4e35ece04c@n4com.it">
<meta http-equiv="content-type" content="text/html;
charset=iso-8859-15">
<p>Dear all,</p>
<p> I need to send message forcing a specific socket versus an
ip destination.</p>
<p>Actually I use servarl IP on my production installation, but I
want to force a specifical ip address versus an ip destination.
<br>
</p>
<p>Using topologt hiding is enough to add in invite route
something like this?<br>
</p>
<p><font size="-1"><b>if( $rd == "1.1.1.1" )</b></font></p>
<p><font size="-1"><b> force_send_socket("udp:2.2.2.2:5060")</b></font><br>
</p>
<p>The socket will be used even on next dialog messages without
forcing anymore?</p>
<p>Is there a better solution?<br>
</p>
<p>Thanks in advance for your response,<br>
</p>
<pre class="moz-signature" cols="72">--
Donato Zito | CTO
--------------------
N4COM S.R.L.
Tel: +39 0909148000
Cel: +39 3471388322
Fax: +39 0909148970
mail : <a class="moz-txt-link-abbreviated" href="mailto:donato.zito@n4com.it" moz-do-not-send="true">donato.zito@n4com.it</a>
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>