Module: kamailio Branch: 4.3 Commit: 48b4261dd6eb25e2898cac9412b13b46baacf79f URL: https://github.com/kamailio/kamailio/commit/48b4261dd6eb25e2898cac9412b13b46baacf79f
Author: Federico Cabiddu <[email protected]> Committer: Federico Cabiddu <[email protected]> Date: 2015-08-26T12:51:52+02:00 modules/dialog: make dialog context available in event route tm:local-request (cherry picked from commit 5002f66a98b6104702c8c862e7335ff189e7b7d8) --- Modified: modules/dialog/dlg_handlers.c --- Diff: https://github.com/kamailio/kamailio/commit/48b4261dd6eb25e2898cac9412b13b46baacf79f.diff Patch: https://github.com/kamailio/kamailio/commit/48b4261dd6eb25e2898cac9412b13b46baacf79f.patch --- diff --git a/modules/dialog/dlg_handlers.c b/modules/dialog/dlg_handlers.c index aae6efb..248d985 100644 --- a/modules/dialog/dlg_handlers.c +++ b/modules/dialog/dlg_handlers.c @@ -1402,8 +1402,13 @@ 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(); + /* run event route for end of dlg */ dlg_run_event_route(dlg, NULL, dlg->state, DLG_STATE_DELETED); _______________________________________________ sr-dev mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
