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

Function rtpe_function_call_ok

modules/rtpengine/rtpengine.c:3089–3106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3087}
3088
3089static bencode_item_t *rtpe_function_call_ok(bencode_buffer_t *bencbuf, struct sip_msg *msg,
3090 enum rtpe_operation op, str *flags_str, str *body, pv_spec_t *spvar,
3091 struct rtpe_set *set, str *node, bencode_item_t *dict)
3092{
3093 bencode_item_t *ret;
3094
3095 ret = rtpe_function_call(bencbuf, msg, op, flags_str, body, spvar, set, node, dict);
3096 if (!ret)
3097 return NULL;
3098
3099 if (bencode_dictionary_get_strcmp(ret, "result", "ok")) {
3100 LM_ERR("proxy didn't return \"ok\" result\n");
3101 bencode_buffer_free(bencbuf);
3102 return NULL;
3103 }
3104
3105 return ret;
3106}
3107
3108
3109

Callers 6

rtpe_fetch_statsFunction · 0.85
rtpengine_playmedia_fFunction · 0.85
rtpengine_stopmedia_fFunction · 0.85
rtpengine_play_dtmf_fFunction · 0.85
rtpengine_api_copy_opFunction · 0.85

Calls 3

rtpe_function_callFunction · 0.85
bencode_buffer_freeFunction · 0.85

Tested by

no test coverage detected