Re: [OpenSIPS-Users] Dispatcher module needs Integer instead of String

2013-11-22 Thread Samuel Muller
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

Re: [OpenSIPS-Users] Dispatcher module needs Integer instead of String

2013-11-20 Thread Răzvan Crainea
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

[OpenSIPS-Users] Dispatcher module needs Integer instead of String

2013-11-20 Thread Samuel Muller
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")) {