From a73cadc64ff11706b6cefef5618dd9c50441e3f3 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Tue, 11 Mar 2014 17:38:02 +0100 Subject: [PATCH] improve linphone_core_stop_ringing() so that it also suppresses call waiting beep. --- coreapi/linphonecore.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 6243d82d4..d56c41709 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -5364,7 +5364,7 @@ typedef enum{ }LinphoneAudioResourceType; static MSFilter *get_audio_resource(LinphoneCore *lc, LinphoneAudioResourceType rtype){ - LinphoneCall *call=linphone_core_get_current_call (lc); + LinphoneCall *call=linphone_core_get_current_call(lc); AudioStream *stream=NULL; RingStream *ringstream; if (call){ @@ -6186,12 +6186,17 @@ void linphone_core_start_dtmf_stream(LinphoneCore* lc) { * @ingroup media_parameters **/ void linphone_core_stop_ringing(LinphoneCore* lc) { + LinphoneCall *call=linphone_core_get_current_call(lc); if (lc->ringstream) { ring_stop(lc->ringstream); lc->ringstream=NULL; lc->dmfs_playing_start_time=0; lc->ringstream_autorelease=TRUE; } + if (call && call->ringing_beep){ + linphone_core_stop_dtmf(lc); + call->ringing_beep=FALSE; + } } void linphone_core_stop_dtmf_stream(LinphoneCore* lc) {