[OpenSIPS-Users] dr_is_gw parameters wrong when not using partitions

Ben Newlin Ben.Newlin at genesys.com
Tue Feb 20 10:51:45 EST 2018


Hi,

I am running into an issue migrating from 1.11 to 2.3. It appears the dr_is_gw function is broken in 2.3.x.

When not using partitions, the function parameters are not being translated properly before being passed to the internal function. With this command:

dr_is_gw("$avp(src_uri)", "2", "inc", "$avp(gw_attr)");

I get the following error:

CRITICAL:core:fixup_get_svalue: bogus type 4 in gparam
ERROR:drouting:_is_dr_gw_w_part: invalid flags parameter

I believe the problem was introduced with this commit in master, which was pulled back into 2.3:

https://github.com/OpenSIPS/opensips/commit/991b3ef4fabb4a21dd0f95ea18a5e934261be01c

This commit changed the parameters being passed through so that the names matched what is expected, but when the partition is not present all arguments must be shifted over by one. As far as I can tell the logic was already correct prior to that commit.

Thanks,
Ben Newlin




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20180220/89c79353/attachment-0001.html>


More information about the Users mailing list