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

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Jan 9 09:59:47 EST 2018


Hi Jon,

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 ?

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   http://www.opensips-solutions.com
OpenSIPS Summit 2018
   http://www.opensips.org/events/Summit-2018Amsterdam

On 01/09/2018 02:54 PM, Jonathan Hunter wrote:
> 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
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

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


More information about the Users mailing list