Skip to content

Commit

Permalink
Merge pull request #300 from grumvalski/ontimeout_bye_dlg_ctx
Browse files Browse the repository at this point in the history
modules/dialog: make dialog context available in event route tm:local…
  • Loading branch information
miconda committed Aug 25, 2015
2 parents 7e7ffea + 5002f66 commit 31d984c
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 31d984c

Please sign in to comment.