<div dir="ltr">Thank you . I will try this . <div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><b><i>Thanks & Regards</i></b><div><i>Sasmita Panda</i></div><div><i>Senior Network Testing and Software Engineer</i></div><div><i>3CLogic , ph:07827611765</i></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 6, 2024 at 2:09 PM Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div>
<font face="monospace">Hi Sasmita,<br>
<br>
Going back to your original idea, with sethostport(). What you
need to do is :<br>
<br>
1) strip any potential `transport` param from RURI (as it may
force TLS)<br>
ruri_del_param("transport");<br>
<br>
2) set as outbound socket an UDP one<br>
$socket_out = "udp:<a href="http://192.168.0.69:5060" target="_blank">192.168.0.69:5060</a>";<br>
<br>
Regards,<br>
</font>
<pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="https://www.opensips-solutions.com" target="_blank">https://www.opensips-solutions.com</a>
<a href="https://www.siphub.com" target="_blank">https://www.siphub.com</a></pre>
<div>On 29.07.2024 12:50, Sasmita Panda
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Any suggestions on this ?
<div><br>
</div>
<div><br>
</div>
<div><br clear="all">
<div>
<div dir="ltr" class="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr"><b><i>Thanks & Regards</i></b>
<div><i>Sasmita Panda</i></div>
<div><i>Senior Network Testing and Software Engineer</i></div>
<div><i>3CLogic , ph:07827611765</i></div>
</div>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, Jul 26, 2024 at
4:55 PM Sasmita Panda <<a href="mailto:spanda@3clogic.com" target="_blank">spanda@3clogic.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">Hi , Thanks for the reply .
<div>Rather than configuration change , I have done through
dynamic routing . </div>
<div><br>
</div>
<div> In the dr_gateway table I have added socket
information <b>udp:x.x.x.x:5060</b> </div>
<div>mysql> select * from dr_gateways;<br>
+----+------+------+---------------------------------------+-------+------------+-------+------------+-------+-----------------------+-------------+<br>
| id | gwid | type | address
| strip | pri_prefix | attrs | probe_mode | state | socket
| description |<br>
+----+------+------+---------------------------------------+-------+------------+-------+------------+-------+-----------------------+-------------+<br>
| 1 | gw4 | 3 | <a href="http://fs.3c.com:6080" target="_blank">fs.3c.com:6080</a>
| 0 | NULL | NULL | 0 | 0 | udp:<a href="http://192.168.0.69:5060" target="_blank">192.168.0.69:5060</a> | NULL
|<br>
+----+------+------+---------------------------------------+-------+------------+-------+------------+-------+-----------------------+-------------+<br>
</div>
<div><br>
</div>
<div>I only have a single Invite on a single session on this
leg . There is no Re-Invite at all . Will I need to set
record_route_preset on this case as well ?</div>
<div><br clear="all">
<div>
<div dir="ltr" class="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr"><b><i>Thanks & Regards</i></b>
<div><i>Sasmita Panda</i></div>
<div><i>Senior Network Testing and Software
Engineer</i></div>
<div><i>3CLogic , ph:07827611765</i></div>
</div>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Wed, Jul 24, 2024 at
7:06 PM Ben Newlin <<a href="mailto:Ben.Newlin@genesys.com" target="_blank">Ben.Newlin@genesys.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11pt">Sasmita,</span></p>
<p class="MsoNormal"><span style="font-size:11pt"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt">You
need to be using $socket_out. [1]</span></p>
<p class="MsoNormal"><span style="font-size:11pt"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt">By
default, OpenSIPS will use the receiving socket
as the sending socket. This means if you receive
the message on TLS and do not change $socket_out
then the message will be sent out the TLS
socket.</span></p>
<p class="MsoNormal"><span style="font-size:11pt"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt">Additionally,
unless you are using B2BUA or maybe
topology_hiding you will likely need to
“remember” this protocol transition by adding a
double Record-Route [2] to the message. You may
also need to change any “transport” params that
exist in the Request-URI and possibly the
Contact header.</span></p>
<p class="MsoNormal"><span style="font-size:11pt"> </span></p>
<p class="MsoNormal"><span style="font-size:11pt">[1]
<a href="https://www.opensips.org/Documentation/Script-CoreVar-3-2#toc86" target="_blank">
https://www.opensips.org/Documentation/Script-CoreVar-3-2#toc86</a></span></p>
<p class="MsoNormal"><span style="font-size:11pt">[2]
<a href="https://opensips.org/docs/modules/3.2.x/rr.html" target="_blank">
https://opensips.org/docs/modules/3.2.x/rr.html</a></span></p>
<p class="MsoNormal"><span style="font-size:11pt"> </span></p>
<div>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:black">Ben
Newlin</span><span style="font-size:11pt"></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11pt"> </span></p>
<div id="m_6982716339431933706m_-2928096001813398725m_3535983055237751553m_992981054277667017mail-editor-reference-message-container">
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0in 0in">
<p class="MsoNormal" style="margin-bottom:12pt"><b><span style="font-size:12pt;color:black">From:
</span></b><span style="font-size:12pt;color:black">Users
<<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>>
on behalf of Sasmita Panda <<a href="mailto:spanda@3clogic.com" target="_blank">spanda@3clogic.com</a>><br>
<b>Date: </b>Wednesday, July 24, 2024 at
1:54</span><span style="font-size:12pt;font-family:Arial,sans-serif;color:black"> </span><span style="font-size:12pt;color:black">AM<br>
<b>To: </b>OpenSIPS users mailling list
<<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>><br>
<b>Subject: </b>[OpenSIPS-Users] I need
some info while setiing sethostport on
opensips config .</span></p>
</div>
<div>
<div>
<div>
<table style="border-collapse:collapse;border:none" cellspacing="0" cellpadding="0" border="1">
<tbody>
<tr>
<td style="border:1pt solid rgb(182,0,0);background:white;padding:0.75pt">
<p class="MsoNormal"><b><span style="font-size:12pt;font-family:Calibri,sans-serif;color:rgb(182,0,0)"> EXTERNAL
EMAIL - Please use caution
with links and attachments </span></b></p>
</td>
</tr>
</tbody>
</table>
</div>
<p class="MsoNormal"><span style="font-size:12pt;font-family:Helvetica"> </span></p>
<div class="MsoNormal" style="text-align:center" align="center"><span style="font-size:12pt;font-family:Helvetica">
<hr width="100%" size="0" align="center">
</span></div>
</div>
<p class="MsoNormal"><span style="font-size:12pt">Hi All , </span></p>
<div>
<p class="MsoNormal"><span style="font-size:12pt"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt">I am using
openisp version : 3.2 </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt">I have an
opensips config on which I was listening
on UDP port only and hence using
sethostport to route calls to a
particular destination . like below . </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt">
if(is_from_gw() || ($rp=~"5505"))<br>
{<br>
sethostport("<a href="http://freeswitch-test.xyz.com:6080" target="_blank">freeswitch-test.xyz.com:6080</a>");<br>
route(inbound);<br>
exit;<br>
}</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt">Now I have to
accept a call on TLS and send that to
some other destination on UDP . I have
enabled the tls module and also the
dependent modules like tls_openssl,
tls_mgm . </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt"> </span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt"><span style="font-size:12pt">socket=udp:192.168.0.y:5060 <br>
socket=tls:192.168.0.y:5061 <br>
socket=tcp:192.168.0.y:5060 </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt">
if(is_from_gw() || ($rp=~"5505"))<br>
{<br>
sethostport("<a href="http://freeswitch-test.xyz.com:6080" target="_blank">freeswitch-test.xyz.com:6080</a>");<br>
route(inbound);<br>
exit;<br>
}</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt">This above
configuration is not working . I am
getting "477 Send Failed "</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt"> </span></p>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><b><i><span style="font-size:12pt">Thanks
& Regards</span></i></b><span style="font-size:12pt"></span></p>
<div>
<p class="MsoNormal"><i><span style="font-size:12pt">Sasmita
Panda</span></i><span style="font-size:12pt"></span></p>
</div>
<div>
<p class="MsoNormal"><i><span style="font-size:12pt">Senior
Network Testing and
Software Engineer</span></i><span style="font-size:12pt"></span></p>
</div>
<div>
<p class="MsoNormal"><i><span style="font-size:12pt">3CLogic
, ph:07827611765</span></i><span style="font-size:12pt"></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<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-bin/mailman/listinfo/users</a><br>
</div>
</blockquote>
</div>
</blockquote>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote></div>