Module: kamailio
Branch: master
Commit: 5002f66a98b6104702c8c862e7335ff189e7b7d8
URL:
https://github.com/kamailio/kamailio/commit/5002f66a98b6104702c8c862e7335ff…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Date: 2015-08-25T07:26:19+02:00
modules/dialog: make dialog context available in event route tm:local-request
---
Modified: modules/dialog/dlg_handlers.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5002f66a98b6104702c8c862e7335ff…
Patch:
https://github.com/kamailio/kamailio/commit/5002f66a98b6104702c8c862e7335ff…
---
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);