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

Function EndMediaSession

modules/mediaproxy/mediaproxy.c:1931–1948  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1929
1930
1931static int
1932EndMediaSession(struct sip_msg *msg)
1933{
1934 str callid, from_tag, to_tag;
1935
1936 if (mediaproxy_disabled)
1937 return -1;
1938
1939 if (get_callid(msg, &callid) < 0) {
1940 LM_ERR("failed to get Call-ID\n");
1941 return -1;
1942 }
1943
1944 from_tag = get_from_tag(msg);
1945 to_tag = get_to_tag(msg);
1946
1947 return end_media_session(callid, from_tag, to_tag);
1948}
1949
1950
1951//

Callers

nothing calls this directly

Calls 4

get_callidFunction · 0.85
end_media_sessionFunction · 0.85
get_from_tagFunction · 0.70
get_to_tagFunction · 0.70

Tested by

no test coverage detected