Hello !
Thanks for your answer, I tried everything like :
$avp(i:my_port) = "5060";
$avp(my_port) = "5060";
$avp(my_port) = 5060;
Each time I've the same error ...
But, maybe you have a better way to probe a Sip proxy (without using
LB or Dispatcher probing stuff) and set up a global flag that
Hi, Samuel!
Since OpenSIPS 1.7 all AVPs names are strings, no matter how you specify
them. However, your problem is that you are using the port value (not
name) as a string. The correct code is:
...
$avp(i:my_port) = 5060;
if (ds_is_in_list("$avp(my_ip)","$avp(my_port)","1","1")) {
...
Or, in
Hey,
I would like to be sure that since Opensips 1.9 (or 1.10 ?), all AVPs
are strings only ?
if yes, the dispatcher module should be updated consequently I suppose :
$avp(my_ip) = "1.2.3.4";
$avp(i:my_port) = "5060";
if (ds_is_in_list("$avp(my_ip)","$avp(i:my_port)","1","1")) {