From 546dcfb160e81142911837203c9c9726804287a7 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Tue, 25 Mar 2014 10:58:18 +0100 Subject: [PATCH] enable real early media sending for incoming calls. --- coreapi/callbacks.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/coreapi/callbacks.c b/coreapi/callbacks.c index 80818be37..f7a1fa363 100644 --- a/coreapi/callbacks.c +++ b/coreapi/callbacks.c @@ -143,8 +143,7 @@ void linphone_core_update_streams(LinphoneCore *lc, LinphoneCall *call, SalMedia if (call->state==LinphoneCallIncomingEarlyMedia && linphone_core_get_remote_ringback_tone (lc)!=NULL){ send_ringbacktone=TRUE; } - if (call->state==LinphoneCallIncomingEarlyMedia || - (call->state==LinphoneCallOutgoingEarlyMedia && !call->params.real_early_media)){ + if ((call->state==LinphoneCallIncomingEarlyMedia || call->state==LinphoneCallOutgoingEarlyMedia) && !call->params.real_early_media){ all_muted=TRUE; } linphone_call_start_media_streams(call,all_muted,send_ringbacktone);