From b06a202d82739f9e9d66a02104f79f8399ecb680 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Tue, 3 Apr 2012 15:35:42 +0200 Subject: [PATCH] fix: don't stop ringback in linphone_core_stop_dtmf_stream(). --- coreapi/linphonecore.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index 904f6a6c8..6f459b2be 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -4583,8 +4583,10 @@ void linphone_core_start_dtmf_stream(LinphoneCore* lc) { } void linphone_core_stop_dtmf_stream(LinphoneCore* lc) { - if (lc->ringstream) ring_stop(lc->ringstream); - lc->ringstream=NULL; + if (lc->ringstream && dmfs_playing_start_time!=0) { + ring_stop(lc->ringstream); + lc->ringstream=NULL; + } } int linphone_core_get_max_calls(LinphoneCore *lc) {