>From 8403733760061fda6babd90d009b3cf6621f701d Mon Sep 17 00:00:00 2001 From: trevora Date: Thu, 14 Jan 2016 08:55:43 -0500 Subject: [PATCH] Hold file loops for ZRTP calls. Sets the amount of time to pause before replaying the hold music file. --- coreapi/linphonecall.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index 550c0fb..62f2923 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -3453,6 +3453,8 @@ void linphone_call_start_media_streams(LinphoneCall *call, LinphoneCallState nex if (call->onhold_file && !call->params->in_conference && call->audiostream){ MSFilter *player = audio_stream_open_remote_play(call->audiostream, call->onhold_file); if (player){ + int pause_time=500; + ms_filter_call_method(player, MS_FILE_PLAYER_LOOP, &pause_time); ms_filter_call_method_noarg(player, MS_PLAYER_START); } } -- 2.7.0