1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-11-04 15:41:19 +00:00

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

This commit is contained in:
Evangelos Ribeiro Tzaras 2021-09-17 12:03:02 +02:00
parent 929d76708a
commit b6ee0bb48d

View file

@ -522,6 +522,12 @@ sip_i_state (int status,
const char *session_ip = NULL; const char *session_ip = NULL;
const char *media_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) if (r_sdp->sdp_connection && r_sdp->sdp_connection->c_address)
session_ip = r_sdp->sdp_connection->c_address; session_ip = r_sdp->sdp_connection->c_address;