From: Italo Rossi Date: Fri, 15 Sep 2017 00:02:47 +0000 (-0300) Subject: FS-10660: [mod_callcenter] Park agent session before play cc_warning_tone - avoid... X-Git-Tag: v1.8.0~267 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=77dcd007ad63b411933f3e4897b0a2a1133ab8c4;p=thirdparty%2Ffreeswitch.git FS-10660: [mod_callcenter] Park agent session before play cc_warning_tone - avoid double playback causing distorted audio --- diff --git a/src/mod/applications/mod_callcenter/mod_callcenter.c b/src/mod/applications/mod_callcenter/mod_callcenter.c index e004a21a10..9b9448bb1f 100644 --- a/src/mod/applications/mod_callcenter/mod_callcenter.c +++ b/src/mod/applications/mod_callcenter/mod_callcenter.c @@ -1779,6 +1779,8 @@ static void *SWITCH_THREAD_FUNC outbound_agent_thread_run(switch_thread_t *threa /* Playback this to the agent */ if (cc_warning_tone) { + switch_ivr_park_session(agent_session); + switch_channel_wait_for_flag(agent_channel, CF_PARK, SWITCH_TRUE, 5000, NULL); playback_array(agent_session, cc_warning_tone); }