소스 검색

tm: execut cfg_update() inside t_continue()

- refresh the values changed inside cfg framework
- reported by Victor Seva, GH #708
Daniel-Constantin Mierla 9 년 전
부모
커밋
c7bec3320f
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      modules/tm/t_suspend.c

+ 3 - 0
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;