Skip to content

Commit

Permalink
modules/dialog: make dialog context available in event route tm:local…
Browse files Browse the repository at this point in the history
…-request
  • Loading branch information
grumvalski committed Aug 25, 2015
1 parent 7e7ffea commit 5002f66
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/dialog/dlg_handlers.c
Expand Up @@ -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);
Expand Down

0 comments on commit 5002f66

Please sign in to comment.