[OpenSIPS-Users] dr_is_gw function when upgrading from 2.2.5 to 2.3 not working in same way

Jonathan Hunter hunterj91 at hotmail.com
Tue Jan 9 07:54:15 EST 2018


Hi Guys,

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 ?

As if I test between the two versions the same statement doesnt match correctly.

Essentially I have 2 main gateways types in dr_gateways, type=1 for our SBC and type=2 for our freeswitch servers.

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;

if(dr_is_gw("$avp(originURI)","1"))

Where $avp(originURI) = source IP of freeswitch type=2, opensips keeps stating its from the SBC, type=1.

This only happens after upgrade, so works fine with 2.2

Has this function changed between versions? Has anyone else had this issue where its matching the source IP against the wrong type?

Please let me know if I need to change the syntax I am adding to the function!

Many thanks

Jon

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20180109/7ef9ee88/attachment.html>


More information about the Users mailing list