Blob Blame History Raw
From: Bogdan Andrei IANCU <bogdan@opensips.org>
Date: Mon, 20 Apr 2015 12:21:34 +0300
Subject: [PATCH] Merge pull request #431 from dsandras/ds-fix-sst-avp

dialog: Update dlg lifetime whe re-evaluating the AVP after the callback...
(cherry picked from commit 2cf99baad363c0c5ba3aa9966214a63fb5fb195a)

diff --git a/modules/dialog/dlg_handlers.c b/modules/dialog/dlg_handlers.c
index f32eb0b..05637b8 100644
--- a/modules/dialog/dlg_handlers.c
+++ b/modules/dialog/dlg_handlers.c
@@ -1262,6 +1262,7 @@ after_unlock5:
 		/* update timer during sequential request? */
 		timeout = get_dlg_timeout_update(req);
 		if (timeout != 0) {
+			dlg->lifetime = timeout;
 			if (update_dlg_timer( &dlg->tl, dlg->lifetime )==-1)
 				LM_ERR("failed to update dialog lifetime\n");
 		}