[sr-dev] git:4.3:afa1f484: tm: execut cfg_update() inside t_continue()
Victor Seva
linuxmaniac at torreviejawireless.org
Wed Jul 13 17:33:06 CEST 2016
Module: kamailio
Branch: 4.3
Commit: afa1f48417b7837e468285b7455903de9d832461
URL: https://github.com/kamailio/kamailio/commit/afa1f48417b7837e468285b7455903de9d832461
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Victor Seva <linuxmaniac at torreviejawireless.org>
Date: 2016-07-13T17:32:25+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/afa1f48417b7837e468285b7455903de9d832461.diff
Patch: https://github.com/kamailio/kamailio/commit/afa1f48417b7837e468285b7455903de9d832461.patch
---
diff --git a/modules/tm/t_suspend.c b/modules/tm/t_suspend.c
index d0d854d..0837562 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"
@@ -177,6 +178,8 @@ int t_continue(unsigned int hash_index, unsigned int label,
int do_put_on_wait;
struct hdr_field *hdr, *prev = 0, *tmp = 0;
+ 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