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:
parent
929d76708a
commit
b6ee0bb48d
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue