[sr-dev] git:5.1:a88346c6: http_async_client: cleanup avps/xavps after exec route on Http worker

Federico Cabiddu federico.cabiddu at gmail.com
Mon Jan 22 10:11:42 CET 2018


Module: kamailio
Branch: 5.1
Commit: a88346c6106653a9ffa60ad41e143f62dd8af1ea
URL: https://github.com/kamailio/kamailio/commit/a88346c6106653a9ffa60ad41e143f62dd8af1ea

Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Committer: Federico Cabiddu <federico.cabiddu at gmail.com>
Date: 2018-01-22T10:11:29+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/a88346c6106653a9ffa60ad41e143f62dd8af1ea.diff
Patch: https://github.com/kamailio/kamailio/commit/a88346c6106653a9ffa60ad41e143f62dd8af1ea.patch

---

diff --git a/src/modules/http_async_client/async_http.c b/src/modules/http_async_client/async_http.c
index 59106a3bae..87a62ea8f6 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 "../../core/kemi.h"
 #include "../../modules/tm/tm_load.h"
@@ -263,6 +264,7 @@ void async_http_cb(struct http_m_reply *reply, void *param)
 				LM_ERR("error running event route kemi callback\n");
 			}
 		}
+		ksr_msg_env_reset();
 	}
 
 done:




More information about the sr-dev mailing list