MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / scriptroute_raise_inline

Function scriptroute_raise_inline

evi/event_route.c:212–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210
211
212static inline int scriptroute_raise_inline(struct sip_msg *req, str *ev_name,
213 evi_reply_sock *sock, evi_params_t *params)
214{
215 struct script_route_ref *rt = SR_SOCK_ROUTE(sock);
216
217 /* suppress the E_CORE_LOG event for new logs while handling
218 * the event itself */
219 suppress_proc_log_event();
220
221 if (ref_script_route_check_and_update( SR_SOCK_ROUTE(sock) )) {}
222
223 route_run(sroutes->event[rt->idx], req, params, ev_name);
224
225 /* remove all added AVP - here we use all the time the default AVP list */
226 reset_avps( );
227
228 reset_proc_log_event();
229
230 return 0;
231}
232
233
234int scriptroute_raise(struct sip_msg *msg, str* ev_name,

Callers 1

scriptroute_raiseFunction · 0.85

Calls 4

suppress_proc_log_eventFunction · 0.85
route_runFunction · 0.85
reset_avpsFunction · 0.85
reset_proc_log_eventFunction · 0.85

Tested by

no test coverage detected