[OpenSIPS/opensips] 0a8cf7: Script: Allow signed integers as module func params

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[OpenSIPS/opensips] 0a8cf7: Script: Allow signed integers as module func params

Răzvan Crainea-3
  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 0a8cf7402a559619203d981de41d91b24e2b06ee
      https://github.com/OpenSIPS/opensips/commit/0a8cf7402a559619203d981de41d91b24e2b06ee
  Author: Liviu Chircu <[hidden email]>
  Date:   2019-06-21 (Fri, 21 Jun 2019)

  Changed paths:
    M cfg.y

  Log Message:
  -----------
  Script: Allow signed integers as module func params

This fixes a regression where the behavior of some OpenSIPS 2.4 module
functions was restricted in 3.0, e.g. is_from_gw():

In 2.4:
    is_from_gw("-1", "n", "$var(gw_attr)") # starts OK

In 3.0 (without this patch):
    is_from_gw(-1, "n", $var(gw_attr)) # would fail to start



_______________________________________________
Devel mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel