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

Function unforce_rtpproxy

modules/rtpproxy/rtpproxy.c:2632–2650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2630}
2631
2632static int unforce_rtpproxy(struct sip_msg* msg, struct rtpp_args *args, pv_spec_t *var)
2633{
2634 struct rtpproxy_vcmd vdel;
2635
2636 RTPP_VCMD_INIT(vdel, 4 + 3, {"D", 1}, {" ", 1}, {NULL, 0}, {" ", 1},
2637 /*.vu[0]*//*.vu[1]*//*.vu[2]*//*.vu[3]*/
2638 {NULL, 0}, {" ", 1}, {NULL, 0});
2639 /*.vu[4]*//*.vu[5]*//*.vu[6] */
2640
2641 STR2IOVEC(args->callid, vdel.vu[2]);
2642 STR2IOVEC(args->from_tag, vdel.vu[4]);
2643 STR2IOVEC(args->to_tag, vdel.vu[6]);
2644
2645 send_rtpp_command(args->node, &vdel,
2646 (args->to_tag.len > 0)?vdel.useritems:vdel.useritems - 2);
2647 LM_DBG("sent unforce command\n");
2648
2649 return 1;
2650}
2651
2652
2653

Callers 3

unforce_rtp_proxy_fFunction · 0.85
engage_close_callbackFunction · 0.85
rtpproxy_api_deleteFunction · 0.85

Calls 1

send_rtpp_commandFunction · 0.85

Tested by

no test coverage detected