Module: kamailio
Branch: master
Commit: 769dce2fad66efdbc6cce6951bc60b60bf453a19
URL:
https://github.com/kamailio/kamailio/commit/769dce2fad66efdbc6cce6951bc60b6…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-08-16T12:57:33+02:00
evapi: use a completely new fake message structure for dispatcher handling
---
Modified: src/modules/evapi/evapi_dispatch.c
---
Diff:
https://github.com/kamailio/kamailio/commit/769dce2fad66efdbc6cce6951bc60b6…
Patch:
https://github.com/kamailio/kamailio/commit/769dce2fad66efdbc6cce6951bc60b6…
---
diff --git a/src/modules/evapi/evapi_dispatch.c b/src/modules/evapi/evapi_dispatch.c
index e603753cec..b0e1e8386b 100644
--- a/src/modules/evapi/evapi_dispatch.c
+++ b/src/modules/evapi/evapi_dispatch.c
@@ -151,8 +151,10 @@ int evapi_run_cfg_route(evapi_env_t *evenv, int rt, str *rtname)
if((rt<0) && (_evapi_event_callback.s==NULL ||
_evapi_event_callback.len<=0))
return 0;
- fmsg = faked_msg_next();
- memcpy(&tmsg, fmsg, sizeof(sip_msg_t));
+ if(faked_msg_get_new(&tmsg)<0) {
+ LM_ERR("failed to get a new faked message\n");
+ return -1;
+ }
fmsg = &tmsg;
evapi_set_msg_env(fmsg, evenv);
backup_rt = get_route_type();