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




_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to