[sr-dev] git:5.0:e37b0934: timer: reset xavp using common function

Luis Azedo luis at 2600hz.com
Sun Sep 24 14:40:07 CEST 2017


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

Author: lazedo <luis.azedo at factorlusitano.com>
Committer: Luis Azedo <luis at 2600hz.com>
Date: 2017-09-24T13:39:43+01:00

timer: reset xavp using common function
(cherry picked from commit f083513f0139156e3b0f1ce68cb934b687d0a56d)

---

Modified: src/modules/timer/timer.c

---

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

---

diff --git a/src/modules/timer/timer.c b/src/modules/timer/timer.c
index 877c318408..944e50b4dd 100644
--- a/src/modules/timer/timer.c
+++ b/src/modules/timer/timer.c
@@ -189,7 +189,7 @@ static ticks_t timer_handler(ticks_t ticks, struct timer_ln* tl, void* data) {
 		/* execute post request-script callbacks */
 		exec_post_script_cb(msg, REQUEST_CB_TYPE);
 	end:
-		reset_avps();
+		ksr_msg_env_reset();
 		DEBUG(MODULE_NAME": handler: cleaning up\n");
 	err:
 		free_sip_msg(msg);




More information about the sr-dev mailing list