<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">fs.3c.com:6080</a> | 0 | NULL | NULL | 0 | 0 | udp:<a href="http://192.168.0.69:5060">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" 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 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,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">You need to be using $socket_out. [1]<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></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.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></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.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></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><u></u><u></u></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><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></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"><u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<div id="m_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 .<u></u><u></u></span></p>
</div>
<div>
<div>
<div>
<table border="1" cellspacing="0" cellpadding="0" style="border-collapse:collapse;border:none">
<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 <u></u><u></u></span></b></p>
</td>
</tr>
</tbody>
</table>
</div>
<p class="MsoNormal"><span style="font-size:12pt;font-family:Helvetica"><u></u> <u></u></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12pt;font-family:Helvetica">
<hr size="0" width="100%" align="center">
</span></div>
</div>
<p class="MsoNormal"><span style="font-size:12pt">Hi All , <u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span style="font-size:12pt"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt">I am using openisp version : 3.2 <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt"><u></u> <u></u></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 . <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt"><u></u> <u></u></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>
}<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt"><u></u> <u></u></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 . <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt"><u></u> <u></u></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 <u></u><u></u></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>
}<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt">This above configuration is not working . I am getting "477 Send Failed "<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt"><u></u> <u></u></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"><u></u><u></u></span></p>
<div>
<p class="MsoNormal"><i><span style="font-size:12pt">Sasmita Panda</span></i><span style="font-size:12pt"><u></u><u></u></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"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><i><span style="font-size:12pt">3CLogic , ph:07827611765</span></i><span style="font-size:12pt"><u></u><u></u></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>