Re: [OpenSIPS-Users] dialog timeout_avp issue

2011-03-29 Thread Bogdan-Andrei Iancu
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)”);

[OpenSIPS-Users] dialog timeout_avp issue

2011-03-23 Thread Chris Martineau
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)){

Re: [OpenSIPS-Users] dialog timeout_avp issue

2011-03-23 Thread Brett Nemeroff
On Wed, Mar 23, 2011 at 8:50 AM, Chris Martineau ch...@ghosttelecom.comwrote: 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