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

Samuel Muller sml at l33.fr
Wed Nov 20 14:03:15 CET 2013


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")) {
        do_something("in_your_life");
    }

Opensips logs :

WARNING:core:parse_avp_spec: Deprecated AVP name format "i:my_port" -
use "my_port" instead
ERROR:dispatcher:ds_is_in_list: PORT PV val is not integer

Regards,


Samuel MULLER



More information about the Users mailing list