[OpenSIPS-Users] dialog time out not working

Răzvan Crainea razvan at opensips.org
Tue Jun 17 17:27:12 CEST 2014


Hi, Samuel!

The $DLG_timeout variable was indeed printing a bogus value. I fixed 
that on trunk and 1.11, thanks for reporting it.
However, setting the value should work anyway. I think on your setup, 
the timeout is taken into account and the dialog is deleted, but the BYE 
messages are not sent. Have you tried calling create_dialog("B") with 
the "BYE on timeout" flag [1] :)?

[1] http://www.opensips.org/html/docs/modules/1.11.x/dialog#id293797

Best regards,

Razvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com

On 06/17/2014 02:26 PM, Samuel Muller wrote:
> Hello Bogdan,
>
> - yep, I'm using the 1.11 version, from git (the version that solved
> the cachedb memory leak).
>
> - no, it's the real part of the script where I set up the dialog functions ?
> the only one difference is that for the test, I hard set up the timer
> as if I retrieved it from db (as a string).
> after the last }, I store the dialog info into a local cache, that's all.
>
>
> debug lines does not show up anything useful but the fact the timer is
> not taken in account.
>
> Sam
>
>
>
> Samuel MULLER
> Telecom & Media Consultant
> L33 NETWORKS
> +33 663 128 505
> sml at l33.fr
> www.l33.fr
>
>
> On Mon, Jun 16, 2014 at 4:18 PM, Bogdan-Andrei Iancu
> <bogdan at opensips.org> wrote:
>> Hi Samuel,
>>
>> I guess you are using 1.11 or trunk, right ?
>>
>> If so, are you sure you do the create_dialog() before the setting the
>> $DLG_timeout ? (I looks to me the script is a kind of summary of your real
>> script, if I'm not wrong)
>>
>> Regards,
>>
>> Bogdan-Andrei Iancu
>> OpenSIPS Founder and Developer
>> http://www.opensips-solutions.com
>>
>>
>> On 16.06.2014 16:08, Samuel Muller wrote:
>>>
>>> Hello,
>>>
>>> $DLG_timeout is not taken in account :
>>>
>>> -> cfg
>>>
>>>       if (is_method("INVITE")) {
>>>           # for test purpose, hard set up (string, as retrieved)
>>>           $var(caller_stimeout) = "120";
>>>           # SST module see dead people ...
>>>           setflag(SST);
>>>           # create the dialog
>>>           create_dialog();
>>>           # set the session timeout
>>>           if (issflagset(CALLER_FOUND) && $(var(caller_stimeout){s.len}) !=
>>> 0) {
>>>               # pbm : dialog: caller session timeout set to 0 sec (3600)
>>> even if s.int hardly set
>>>               $DLG_timeout = $(var(caller_stimeout){s.int});
>>>               xlog("L_NOTICE","$var(log) invite: caller session timeout
>>> set to $DLG_timeout sec ($var(caller_stimeout))");
>>>           } else {
>>>               $DLG_timeout = 3600;
>>>           }
>>>       }
>>>
>>> -> logs :
>>> 58edd4d1377e0707 invite: caller session timeout set to 0 sec
>>>
>>>
>>> If you have any idea to make this works (as a prepaid story) ?
>>>
>>> thanks a lot,
>>>
>>>
>>> Samuel MULLER
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



More information about the Users mailing list