[OpenSIPS-Users] dialog timeout_avp issue

Chris Martineau chris at ghosttelecom.com
Wed Mar 23 14:50:27 CET 2011


Hi,

 

Using timeout_avp option in dialog module for prepay call termination.

 

If I do the following it works fine...

 

If (is_method("INVITE")){

                $avp(i:10)=120;

                setflag(6);

}

 

Call terminates after 120seconds

 

If (is_method("INVITE")){

                $var(a)=120;

                $avp(i:10)=$var(a);

                setflag(6);

}

 

Works...

 

If (is_method("INVITE")){

                $avp(s:test)=120;

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

                setflag(6);

}

 

Works...

 

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.

 

If I log the values $avp(i:10) and $avp(s:maxtime) the values have all
been set correctly but the timeout just doesn't happen. Looking at the
dialog entry the timeout has just assumed the default_timeout value.

 

Any ideas?

 

 

Many thanks

 

Chris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110323/084e2504/attachment.htm>


More information about the Users mailing list