1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-07-04 16:09:29 +00:00

sip: sdp: Hang up call when there are no common codecs

(cherry picked from commit b6ee0bb48d)
This commit is contained in:
Evangelos Ribeiro Tzaras 2021-09-17 12:03:02 +02:00
parent 0066e41d7a
commit 54bfb4fc22

View file

@ -522,6 +522,12 @@ sip_i_state (int status,
const char *session_ip = NULL;
const char *media_ip = NULL;
if (!codecs) {
g_warning ("No common codecs in SDP. Hanging up");
calls_call_hang_up (CALLS_CALL (call));
return;
}
if (r_sdp->sdp_connection && r_sdp->sdp_connection->c_address)
session_ip = r_sdp->sdp_connection->c_address;