| 1929 | |
| 1930 | |
| 1931 | static int |
| 1932 | EndMediaSession(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 | // |
nothing calls this directly
no test coverage detected