<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 05.07.2022 15:16, Sasmita Panda
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CALf-Q44Fm37jtv-AmwGUXgkhfh4y5s66RpR08uWJWG85bL4Psw@mail.gmail.com">
<div>When I am calling from gw1 , in the config it comes under the
function <b>is_from_gw</b> . But when I am calling from gw4
with TLS , it does not come under the <b>is_from_gw </b>function
. </div>
<div><br>
</div>
<div>Outgoung call to gw4 working fine . But Opensips is not
accepting call from the same gateway . </div>
</blockquote>
<p><font face="monospace">Hi, Sasmita!</font></p>
<p><font face="monospace">Maybe the TLS gateway uses an emphemeral
source port, so you need to pass the "n" flag (Ignore port) to
is_from_gw() [1]?</font></p>
<p><font face="monospace">[1]:
<a class="moz-txt-link-freetext" href="https://opensips.org/docs/modules/3.4.x/drouting.html#func_is_from_gw">https://opensips.org/docs/modules/3.4.x/drouting.html#func_is_from_gw</a><br>
</font></p>
<p><font face="monospace">Best Regards,</font><br>
</p>
<pre class="moz-signature" cols="72">--
Liviu Chircu
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/liviuchircu">www.twitter.com/liviuchircu</a> | <a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a>
OpenSIPS Summit 2022 Athens, Sep 27-30 | <a class="moz-txt-link-abbreviated" href="http://www.opensips.org/events">www.opensips.org/events</a></pre>
</body>
</html>