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

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to