<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Jon,<br>
<br>
So, the $avp(originURI) holds a SIP URI pointing to a FS box. But
the check against group 2 fails and against group 1 succeeds ?<br>
<br>
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 01/09/2018 02:54 PM, Jonathan Hunter
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:DB4PR02MB033696F1C550FFFD6716BCA1BD100@DB4PR02MB0336.eurprd02.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;"
dir="ltr">
<div>Hi Guys,</div>
<div><br>
</div>
<div>Is there any reason why after moving from version 2.2.5 to
2.3.2 that I would then get issues with drouting module, in
particular dr_is_gw ?</div>
<div><br>
</div>
<div>As if I test between the two versions the same statement
doesnt match correctly.</div>
<div><br>
</div>
<div>Essentially I have 2 main gateways types in dr_gateways,
type=1 for our SBC and type=2 for our freeswitch servers.</div>
<div><br>
</div>
<div>I normally match using dr_is_gw to determine if traffic is
from SBC or FreeSWITCH, however this now no longer works and
on the first occurrence of me writing this statement;</div>
<div><br>
</div>
<div>if(dr_is_gw("$avp(originURI)","1"))</div>
<div><br>
</div>
<div>Where $avp(originURI) = source IP of freeswitch type=2,
opensips keeps stating its from the SBC, type=1.</div>
<div><br>
</div>
<div>This only happens after upgrade, so works fine with 2.2</div>
<div><br>
</div>
<div>Has this function changed between versions? Has anyone else
had this issue where its matching the source IP against the
wrong type? </div>
<div><br>
</div>
<div>Please let me know if I need to change the syntax I am
adding to the function!</div>
<div><br>
</div>
<div>Many thanks</div>
<div><br>
</div>
<div>Jon</div>
<br>
</div>
<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>