From ce0391ac6d4d7e9b4211f5bf24877fe3fd050b5c Mon Sep 17 00:00:00 2001 From: Guillaume BIENKOWSKI Date: Tue, 2 Sep 2014 14:56:16 +0200 Subject: [PATCH] Add the send_ringback_without_playback option so that in early media, we can send the ringback tone without playing the return sound. --- coreapi/linphonecall.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index 52d69496d..d39f0ba74 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -1882,6 +1882,7 @@ static void configure_rtp_session_for_rtcp_xr(LinphoneCore *lc, LinphoneCall *ca static void linphone_call_start_audio_stream(LinphoneCall *call, const char *cname, bool_t muted, bool_t send_ringbacktone, bool_t use_arc){ LinphoneCore *lc=call->core; + LpConfig* conf; int used_pt=-1; char rtcp_tool[128]={0}; const SalStreamDescription *stream; @@ -1926,8 +1927,13 @@ static void linphone_call_start_audio_stream(LinphoneCall *call, const char *cna /*playfile=NULL;*/ } if (send_ringbacktone){ + conf = linphone_core_get_config(lc); captcard=NULL; playfile=NULL;/* it is setup later*/ + if( conf && lp_config_get_int(conf,"sound","send_ringback_without_playback", 0) == 1){ + playcard = NULL; + recfile = NULL; + } } /*if playfile are supplied don't use soundcards*/ if (lc->use_files) {