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

Function raise_rtpproxy_event

modules/rtpproxy/rtpproxy.c:2059–2088  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2057}
2058
2059static inline void raise_rtpproxy_event(struct rtpp_node *node, int status)
2060{
2061 evi_params_p list = NULL;
2062 if (ei_id == EVI_ERROR) {
2063 LM_ERR("event not registered %d\n", ei_id);
2064 return;
2065 }
2066
2067 if (evi_probe_event(ei_id)) {
2068 if (!(list = evi_get_params()))
2069 return;
2070 if (evi_param_add_str(list, &socket_name, &node->rn_url)) {
2071 LM_ERR("unable to add socket parameter\n");
2072 goto free;
2073 }
2074 if (evi_param_add_str(list, &status_name, status ?
2075 &status_connected : &status_disconnected)) {
2076 LM_ERR("unable to add status parameter\n");
2077 goto free;
2078 }
2079 if (evi_raise_event(ei_id, list)) {
2080 LM_ERR("unable to send event\n");
2081 }
2082 } else {
2083 LM_DBG("no event sent\n");
2084 }
2085 return;
2086free:
2087 evi_free_params(list);
2088}
2089
2090
2091

Callers 4

mi_enable_rtp_proxyFunction · 0.85
rtpp_testFunction · 0.85
send_rtpp_commandFunction · 0.85
rtpproxy_offer_answerFunction · 0.85

Calls 4

evi_probe_eventFunction · 0.85
evi_get_paramsFunction · 0.85
evi_raise_eventFunction · 0.85
evi_free_paramsFunction · 0.85

Tested by

no test coverage detected