@miconda more info
it seems that the `faked_env( t, 0, 1);` call (restore original environent) will discard
the avps xavps that can be added during processing of the script block. in this use case,
registrar save (which calls reply) is called, which creates the xavps that are not being
released.
from t_suspend.c
```
faked_env( t, faked_req, 1);
route_type_bk = get_route_type();
set_route_type(FAILURE_ROUTE);
/* execute the pre/post -script callbacks based on original route block */
if (exec_pre_script_cb(faked_req, cb_type)>0) {
if (run_top_route(route, faked_req, 0)<0)
LM_ERR("failure inside run_top_route\n");
exec_post_script_cb(faked_req, cb_type);
}
set_route_type(route_type_bk);
/* TODO: save_msg_lumps should clone the lumps to shm mem */
/* restore original environment */
faked_env( t, 0, 1);
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1111#issuecomment-301510892