[Serusers] avpops question
Andy Pyles
andrew.pyles at fonomni.com
Sat Nov 12 05:06:59 CET 2005
I figured it out. I had a typo.
thanks,
Andy
On Fri, Nov 11, 2005 at 02:40:30PM -0800, Andy Pyles wrote:
>
> hi I have an avpops question
>
> I have an avp object of boolean type called forwardcalls. My question is how do I check if a specific user has this enabled or not? I have the following logic:
>
> if (avp_db_load("$ruri/username", "s:callfwd")) {
> xlog("L_ERR", "call forward [%Tf] method <%rm> r-uri <%ru>\n");
> if ( avp_check("forwarded_calls", "eq/0/gi" )) {
> log(1, "forward calls is disabled!\n\n");
> break;
> } else {
> setflag(22);
> avp_pushto("$ruri", "s:callfwd");
> route(6);
> break;
> }
> };
>
>
>
> I think my avp_check is wrong. Any ideas?
>
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
More information about the sr-users
mailing list