mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-07 04:15:32 +00:00
parent
876f12df95
commit
e185cac3cb
2 changed files with 7 additions and 1 deletions
|
@ -90,6 +90,8 @@ try_setting_up_media_pipeline (CallsSipCall *self)
|
|||
|
||||
if (self->pipeline == NULL) {
|
||||
MediaCodecInfo *codec = (MediaCodecInfo *) self->codecs->data;
|
||||
|
||||
g_debug ("Creating new pipeline using codec: %s", codec->name);
|
||||
self->pipeline = calls_sip_media_pipeline_new (codec);
|
||||
}
|
||||
|
||||
|
|
|
@ -503,6 +503,7 @@ sip_i_state (int status,
|
|||
{
|
||||
const sdp_session_t *r_sdp = NULL;
|
||||
const sdp_session_t *l_sdp = NULL;
|
||||
const char *r_sdp_str = NULL;
|
||||
gint call_state = nua_callstate_init;
|
||||
CallsCallState state;
|
||||
CallsSipCall *call;
|
||||
|
@ -525,6 +526,7 @@ sip_i_state (int status,
|
|||
tl_gets (tags,
|
||||
SOATAG_LOCAL_SDP_REF (l_sdp),
|
||||
SOATAG_REMOTE_SDP_REF (r_sdp),
|
||||
SOATAG_REMOTE_SDP_STR_REF (r_sdp_str),
|
||||
NUTAG_CALLSTATE_REF (call_state),
|
||||
NUTAG_OFFER_SENT_REF (offer_sent),
|
||||
NUTAG_OFFER_RECV_REF (offer_recv),
|
||||
|
@ -545,8 +547,10 @@ sip_i_state (int status,
|
|||
const char *session_ip = NULL;
|
||||
const char *media_ip = NULL;
|
||||
|
||||
g_debug ("Remote SDP was set to:\n%s", r_sdp_str);
|
||||
|
||||
if (!codecs) {
|
||||
g_warning ("No common codecs in SDP. Hanging up");
|
||||
g_warning ("No common codecs in SDP. Hanging up. Remote SDP:\n%s", r_sdp_str);
|
||||
calls_call_hang_up (CALLS_CALL (call));
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue