[sr-dev] git:5.0:470f1885: http_async_client: cleanup avps/xavps after exec route on Http worker

Victor Seva linuxmaniac at torreviejawireless.org
Mon Jan 22 11:20:36 CET 2018


Module: kamailio
Branch: 5.0
Commit: 470f1885a63518a42b921a93e2dedb604044dd41
URL: https://github.com/kamailio/kamailio/commit/470f1885a63518a42b921a93e2dedb604044dd41

Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Committer: Victor Seva <linuxmaniac at torreviejawireless.org>
Date: 2018-01-22T11:15:15+01:00

http_async_client: cleanup avps/xavps after exec route on Http worker
when suspend_transaction is false

(cherry picked from commit ad46b115bedec01c52c5a9dcde0756db85ee61ec)

---

Modified: src/modules/http_async_client/async_http.c

---

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

---

diff --git a/src/modules/http_async_client/async_http.c b/src/modules/http_async_client/async_http.c
index 8386985412..0f1242338b 100644
--- a/src/modules/http_async_client/async_http.c
+++ b/src/modules/http_async_client/async_http.c
@@ -45,6 +45,7 @@
 #include "../../core/dprint.h"
 #include "../../core/ut.h"
 #include "../../core/cfg/cfg_struct.h"
+#include "../../core/receive.h"
 #include "../../core/fmsg.h"
 #include "../../modules/tm/tm_load.h"
 
@@ -226,6 +227,7 @@ void async_http_cb(struct http_m_reply *reply, void *param)
 		fmsg = faked_msg_next();
 		if (run_top_route(act, fmsg, 0)<0)
 			LM_ERR("failure inside run_top_route\n");
+		ksr_msg_env_reset();
 	}
 
 	free_sip_msg(ah_reply);




More information about the sr-dev mailing list