Thanks Sir, It worked and really helpful tip. Good day to you. Regards, Sammu On Aug 12, 2012 1:50 PM, "Muhammad Shahzad" <[email protected]> wrote:
> First make sure you create dialog (if it is already not created by any > other module) and then set AVP before t_relay, e.g. > > create_dialog(); > $avp(10) = 180; > t_relay(); > exit; > > Thank you. > > > On Wed, Aug 1, 2012 at 10:09 AM, SamyGo <[email protected]> wrote: > >> Hi, >> Im trying to implement call duration limits and I've following parameters >> set in dialog module. >> >> loadmodule "dialog.so" >> modparam("dialog", "db_mode", 1) >> modparam("dialog", "dlg_match_mode", 1) >> #modparam("dialog", "default_timeout", 21600) >> modparam("dialog", "timeout_avp", "$avp(10)") >> modparam("dialog", "log_profile_hash_size", 10) >> modparam("dialog", "db_flush_vals_profiles", 1) >> modparam("dialog", "profiles_with_value", "caller; sip; gsm") >> modparam("dialog", "profiles_no_value", "inbound ; outbound") >> modparam("dialog", "db_url", "mysql://opensips:opensips@localhost >> /opensips") >> >> The problem here is whatever value I set in the timeout_avp:$avp(10) it >> doesnt accept it and in debug mode I can see: >> >> DBG:dialog:get_dlg_timeout: invalid AVP value, use default timeout >> >> I've tried setting the avp(10) to 180,30 X seconds but it gives the same >> error. >> >> Please suggest why is this not accepting values. Am I doing it wrong? >> >> >> Regards, >> Sammy >> >> >> >> _______________________________________________ >> Users mailing list >> [email protected] >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> >> > > > -- > Muhammad Shahzad > ----------------------------------- > CISCO Rich Media Communication Specialist (CRMCS) > CISCO Certified Network Associate (CCNA) > Cell: +92 334 422 40 88 > MSN: [email protected] > Email: [email protected] > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > >
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
