[OpenSIPS-Users] Dialog Custom AVP_Timeout is not valid !
SamyGo
govoiper at gmail.com
Sun Aug 12 11:24:23 CEST 2012
Thanks Sir,
It worked and really helpful tip.
Good day to you.
Regards,
Sammu
On Aug 12, 2012 1:50 PM, "Muhammad Shahzad" <shaheryarkh at googlemail.com>
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 <govoiper at gmail.com> 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
>> Users at lists.opensips.org
>> 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: shari_786pk at hotmail.com
> Email: shaheryarkh at googlemail.com
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120812/d20c567d/attachment.htm>
More information about the Users
mailing list