[sr-dev] git:master:74c93c2f: Merge pull request #129 from mikomarrache/patch-8
Daniel-Constantin Mierla
miconda at gmail.com
Wed Apr 15 17:33:34 CEST 2015
Module: kamailio
Branch: master
Commit: 74c93c2f11dbf70e108f0a5a568f957b953a5efd
URL: https://github.com/kamailio/kamailio/commit/74c93c2f11dbf70e108f0a5a568f957b953a5efd
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-04-15T17:33:28+02:00
Merge pull request #129 from mikomarrache/patch-8
dialog: add new flag for expired dialogs
---
Modified: modules/dialog/dlg_handlers.c
Modified: modules/dialog/dlg_hash.h
---
Diff: https://github.com/kamailio/kamailio/commit/74c93c2f11dbf70e108f0a5a568f957b953a5efd.diff
Patch: https://github.com/kamailio/kamailio/commit/74c93c2f11dbf70e108f0a5a568f957b953a5efd.patch
---
diff --git a/modules/dialog/dlg_handlers.c b/modules/dialog/dlg_handlers.c
index 34551a5..fdfc3c3 100644
--- a/modules/dialog/dlg_handlers.c
+++ b/modules/dialog/dlg_handlers.c
@@ -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)
{
diff --git a/modules/dialog/dlg_hash.h b/modules/dialog/dlg_hash.h
index e142027..d79d994 100644
--- a/modules/dialog/dlg_hash.h
+++ b/modules/dialog/dlg_hash.h
@@ -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 */
More information about the sr-dev
mailing list