[Users] AVPPOPS preformace question (OpenSER 1.1.x)

Mike O'Connor mike at pineview.net
Wed Feb 28 02:36:37 CET 2007


Hi Guys

What is going to be faster:

if (avp_db_load("$ruri/username", "$avp(s:callfwdimmediate)")) {
   ....
};
if (avp_db_load("$ruri/username", "$avp(s:callfwdbusy)")) {
   ....
};
if (avp_db_load("$ruri/username", "$avp(s:callfwdnoanswer)")) {
   ....
};

or (if it works):

avp_db_load("$ruri/username", "*");
if( is_avp_set("$avp(s:callfwdimmediate)")) {
    ....
};
if( is_avp_set("$avp(s:callfwdbusy)")) {
    ....
};
if( is_avp_set("$avp(s:callfwdnoanswer)")) {
    ....
};

If the second was valid I would have thought it would be quicker.

Thanks
Mike




More information about the sr-users mailing list