[sr-dev] git:4.4:c8661094: tm: execut cfg_update() inside t_continue()

Victor Seva linuxmaniac at torreviejawireless.org
Wed Jul 13 17:32:15 CEST 2016


Module: kamailio
Branch: 4.4
Commit: c86610943d5c84e0c6ae8fd9e8d40f29e936b4ea
URL: https://github.com/kamailio/kamailio/commit/c86610943d5c84e0c6ae8fd9e8d40f29e936b4ea

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Victor Seva <linuxmaniac at torreviejawireless.org>
Date: 2016-07-13T17:31:52+02:00

tm: execut cfg_update() inside t_continue()

- refresh the values changed inside cfg framework
- reported by Victor Seva, GH #708

(cherry picked from commit c7bec3320f6907c4edd8416a5e5cfa89b071a411)

---

Modified: modules/tm/t_suspend.c

---

Diff:  https://github.com/kamailio/kamailio/commit/c86610943d5c84e0c6ae8fd9e8d40f29e936b4ea.diff
Patch: https://github.com/kamailio/kamailio/commit/c86610943d5c84e0c6ae8fd9e8d40f29e936b4ea.patch

---

diff --git a/modules/tm/t_suspend.c b/modules/tm/t_suspend.c
index e8096bb..6bb2547 100644
--- a/modules/tm/t_suspend.c
+++ b/modules/tm/t_suspend.c
@@ -22,6 +22,7 @@
 #include "../../action.h"
 #include "../../script_cb.h"
 #include "../../dset.h"
+#include "../../cfg/cfg_struct.h"
 
 #include "config.h"
 #include "sip_msg.h"
@@ -178,6 +179,8 @@ int t_continue(unsigned int hash_index, unsigned int label,
 	struct hdr_field *hdr, *prev = 0, *tmp = 0;
 	int route_type_bk;
 
+	cfg_update();
+
 	if (t_lookup_ident(&t, hash_index, label) < 0) {
 		LM_ERR("transaction not found\n");
 		return -1;




More information about the sr-dev mailing list