Re: [sr-dev] [kamailio/kamailio] Dialog: Core dump when using dlg_set_timeout (#1011)

2017-03-14 Thread Daniel-Constantin Mierla
I pushed some commits with safety checks back to 4.4. If the issue is still there, reopen. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [sr-dev] [kamailio/kamailio] Dialog: Core dump when using dlg_set_timeout (#1011)

2017-03-14 Thread Daniel-Constantin Mierla
Closed #1011. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/1011#event-999660339___ sr-dev mailing list sr-dev@lists.sip-router.org

Re: [sr-dev] [kamailio/kamailio] Dialog: Core dump when using dlg_set_timeout (#1011)

2017-02-27 Thread Olle E. Johansson
Thank you! I still can't find the proper dialog, but that's another problem. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [sr-dev] [kamailio/kamailio] Dialog: Core dump when using dlg_set_timeout (#1011)

2017-02-27 Thread Daniel-Constantin Mierla
Sure, that needs to be caught. I tried to suggest a solution for now. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [sr-dev] [kamailio/kamailio] Dialog: Core dump when using dlg_set_timeout (#1011)

2017-02-27 Thread Olle E. Johansson
I did later - but we should not segfault for a bad config, right? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [sr-dev] [kamailio/kamailio] Dialog: Core dump when using dlg_set_timeout (#1011)

2017-02-27 Thread Daniel-Constantin Mierla
The values in the variables have to be numbers, not strings. Try to convert first with {s.int}, like: ``` $var(entry) = $(var(entry){s.int}); $var(id) = $(var(id){s.int}); dlg_set_timeout("2419200", "$var(entry)", "$var(id)"); ``` -- You are receiving this because you are subscribed to this

[sr-dev] [kamailio/kamailio] Dialog: Core dump when using dlg_set_timeout (#1011)

2017-02-27 Thread Olle E. Johansson
dlg_set_timeout("2419200", $var(entry), $var(id)); The both $var's contains strings. If I enclose them with "" there's no segfault, but the var's doesn't seem to be parsed by dlg_set_timeout either. Doing this causes a seg fault when kamailio starts. Version 4.4.2 Will try to get a core dump,