[sr-dev] git:master:fa90ad3d: dialog: set DLG_FLAG_EXPIRED flag when timeout

mikomarrache mikomarrache at users.noreply.github.com
Wed Apr 15 17:33:33 CEST 2015


Module: kamailio
Branch: master
Commit: fa90ad3daef2dc34b97c4c13c0b97bf5f04165d5
URL: https://github.com/kamailio/kamailio/commit/fa90ad3daef2dc34b97c4c13c0b97bf5f04165d5

Author: mikomarrache <mikomarrache at users.noreply.github.com>
Committer: mikomarrache <mikomarrache at users.noreply.github.com>
Date: 2015-04-15T16:28:47+03:00

dialog: set DLG_FLAG_EXPIRED flag when timeout

---

Modified: modules/dialog/dlg_handlers.c

---

Diff:  https://github.com/kamailio/kamailio/commit/fa90ad3daef2dc34b97c4c13c0b97bf5f04165d5.diff
Patch: https://github.com/kamailio/kamailio/commit/fa90ad3daef2dc34b97c4c13c0b97bf5f04165d5.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)
 	{




More information about the sr-dev mailing list