Hi Chris,
the avp_db_load() loads the value into avp(s:maxtime) as string value
and you pass it as string to $avp(i:10).
The dialog module expects an integer value in the $avp(i:10) variable,
so do:
If (is_method(“INVITE”)){
avp_db_load(“$ru”,”$avp(s:maxtime)”);
$avp(i:10)=$(avp(s:maxtime
On Wed, Mar 23, 2011 at 8:50 AM, Chris Martineau 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_preference
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")){