Module: kamailio
Branch: master
Commit: c7bec3320f6907c4edd8416a5e5cfa89b071a411
URL:
https://github.com/kamailio/kamailio/commit/c7bec3320f6907c4edd8416a5e5cfa8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-07-13T15:36:09+02:00
tm: execut cfg_update() inside t_continue()
- refresh the values changed inside cfg framework
- reported by Victor Seva, GH #708
---
Modified: modules/tm/t_suspend.c
---
Diff:
https://github.com/kamailio/kamailio/commit/c7bec3320f6907c4edd8416a5e5cfa8…
Patch:
https://github.com/kamailio/kamailio/commit/c7bec3320f6907c4edd8416a5e5cfa8…
---
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;