[OpenSIPS-Users] access avp and script flags with new naming format

Marcello Lupo mlist at itspecialist.it
Tue Nov 13 12:51:32 CET 2012


Hi to all,
just like to know how to access an AVP with script flags set in the new ( > 1.7) avp naming format.
Usually in 1.6 load from DB values as:

avp_db_load("$fu/username","a1");
avp_db_load("$tu/username","a2");

and after i access them with:

 $avp(i1:11)
 $avp(i2:11)
 
Now that is not needed anymore to specify the i or s for the avp type how i can access avp 11 with script flag 1 or 2 set?
Thank you
Bye,
Marcello




More information about the Users mailing list