[OpenSIPS-Users] dialog timeout_avp issue

Brett Nemeroff brett at nemeroff.com
Wed Mar 23 14:59:05 CET 2011


On Wed, Mar 23, 2011 at 8:50 AM, Chris Martineau <chris at ghosttelecom.com>wrote:

> If (is_method(“INVITE”)){
>
>                 avp_db_load(“$ru”,”$avp(s:maxtime)”);
>
>                 $avp(i:10)=$avp(s:maxtime);
>
>                 setflag(6);
>
> }
>
>
>
> Doesn’t work. Maxtime being an attribute set in usr_preferences of type 0.
>
>
>
> Any ideas?
>
>
>
Chris,
Just a stab in the dark.. maybe a datatype issue?

Can you try:

If (is_method(“INVITE”)){

                avp_db_load(“$ru”,”$avp(s:maxtime)”);

                $avp(s:n_maxtime) = $(avp(s:maxtime){s.int});

                $avp(i:10)=$avp(s:n_maxtime);

                setflag(6);
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110323/1c70010f/attachment.htm>


More information about the Users mailing list