Skip to content

Commit

Permalink
Merge pull request #129 from mikomarrache/patch-8
Browse files Browse the repository at this point in the history
dialog: add new flag for expired dialogs
  • Loading branch information
miconda committed Apr 15, 2015
2 parents 3b8aa15 + fa90ad3 commit 74c93c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/dialog/dlg_handlers.c
Expand Up @@ -1376,6 +1376,9 @@ void dlg_ontimeout(struct dlg_tl *tl)
dlg = ((struct dlg_cell*)((char *)(tl) -
(unsigned long)(&((struct dlg_cell*)0)->tl)));

/* mark dialog as expired */
dlg->dflags |= DLG_FLAG_EXPIRED;

if(dlg->state==DLG_STATE_CONFIRMED_NA
|| dlg->state==DLG_STATE_CONFIRMED)
{
Expand Down
1 change: 1 addition & 0 deletions modules/dialog/dlg_hash.h
Expand Up @@ -67,6 +67,7 @@
#define DLG_FLAG_DEL (1<<8) /*!< delete this var */

#define DLG_FLAG_TM (1<<9) /*!< dialog is set in transaction */
#define DLG_FLAG_EXPIRED (1<<10)/*!< dialog is expired */

/* internal flags stored in db */
#define DLG_IFLAG_TIMEOUTBYE (1<<0) /*!< send bye on time-out */
Expand Down

0 comments on commit 74c93c2

Please sign in to comment.