Module: kamailio
Branch: master
Commit: 31d984c6a1b59da455387cb10bfd68dd8d8bbcc8
URL:
https://github.com/kamailio/kamailio/commit/31d984c6a1b59da455387cb10bfd68d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-08-25T08:49:13+02:00
Merge pull request #300 from grumvalski/ontimeout_bye_dlg_ctx
modules/dialog: make dialog context available in event route tm:localâ¦
---
Modified: modules/dialog/dlg_handlers.c
---
Diff:
https://github.com/kamailio/kamailio/commit/31d984c6a1b59da455387cb10bfd68d…
Patch:
https://github.com/kamailio/kamailio/commit/31d984c6a1b59da455387cb10bfd68d…
---
diff --git a/modules/dialog/dlg_handlers.c b/modules/dialog/dlg_handlers.c
index 591e410..3768fd4 100644
--- a/modules/dialog/dlg_handlers.c
+++ b/modules/dialog/dlg_handlers.c
@@ -1402,8 +1402,12 @@ void dlg_ontimeout(struct dlg_tl *tl)
if(dlg->iflags&DLG_IFLAG_TIMEOUTBYE)
{
+ /* set the dialog context so that it's available in
+ * tm:local-request event route */
+ dlg_set_ctx_iuid(dlg);
if(dlg_bye_all(dlg, NULL)<0)
dlg_unref(dlg, 1);
+ dlg_reset_ctx_iuid();
dlg_unref(dlg, 1);
if_update_stat(dlg_enable_stats, expired_dlgs, 1);