Module: kamailio
Branch: master
Commit: 09eb1673fa922c0ced75dbcdcf8f6c90f6a84720
URL:
https://github.com/kamailio/kamailio/commit/09eb1673fa922c0ced75dbcdcf8f6c9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-05-17T08:40:12+02:00
rtimer: use wrapper function to reset msg env lists (avp and xavp)
---
Modified: src/modules/rtimer/rtimer_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/09eb1673fa922c0ced75dbcdcf8f6c9…
Patch:
https://github.com/kamailio/kamailio/commit/09eb1673fa922c0ced75dbcdcf8f6c9…
---
diff --git a/src/modules/rtimer/rtimer_mod.c b/src/modules/rtimer/rtimer_mod.c
index cc916e5..e067bd6 100644
--- a/src/modules/rtimer/rtimer_mod.c
+++ b/src/modules/rtimer/rtimer_mod.c
@@ -15,8 +15,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
@@ -37,8 +37,7 @@
#include "../../core/socket_info.h"
#include "../../core/dset.h"
#include "../../core/pt.h"
-#include "../../core/usr_avp.h"
-#include "../../core/xavp.h"
+#include "../../core/receive.h"
#include "../../core/timer_proc.h"
#include "../../core/script_cb.h"
#include "../../core/parser/parse_param.h"
@@ -197,10 +196,7 @@ void stm_timer_exec(unsigned int ticks, void *param)
set_route_type(REQUEST_ROUTE);
run_top_route(main_rt.rlist[rt->route], fmsg, 0);
exec_post_script_cb(fmsg, REQUEST_CB_TYPE);
- reset_avps();
-#ifdef WITH_XAVP
- xavp_reset_list();
-#endif
+ ksr_msg_env_reset();
}
}