mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-28 16:49:20 +00:00
improve linphone_core_stop_ringing() so that it also suppresses call waiting beep.
This commit is contained in:
parent
edc2963e44
commit
a73cadc64f
1 changed files with 6 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue