[calls/gnome-41] sip: sdp: Hang up call when there are no common codecs



commit 54bfb4fc22a6cbf1b70e8ae684764a5fa0cf6edd
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date:   Fri Sep 17 12:03:02 2021 +0200

    sip: sdp: Hang up call when there are no common codecs
    
    (cherry picked from commit b6ee0bb48db83c3c52bfbef8313879650287873a)

 plugins/sip/calls-sip-origin.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/plugins/sip/calls-sip-origin.c b/plugins/sip/calls-sip-origin.c
index 2a04b0bd..32fd80a6 100644
--- a/plugins/sip/calls-sip-origin.c
+++ b/plugins/sip/calls-sip-origin.c
@@ -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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]