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

Liviu Chircu liviu at opensips.org
Tue Feb 20 11:03:10 EST 2018


Hi Ben,

I hope you're running off the release packages, because this 2.3 issue 
has been reported & fixed here [1], a month ago. Otherwise, we'll have 
to do some more digging.

Best regards,

[1]: https://github.com/OpenSIPS/opensips/commit/d448ab6e3599d

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 20.02.2018 17:51, Ben Newlin wrote:
>
> 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
> 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/20180220/8f683795/attachment.html>


More information about the Users mailing list