FS-10660: [mod_callcenter] Park agent session before play cc_warning_tone - avoid double playback causing distorted audio

This commit is contained in:
Italo Rossi 2017-09-14 21:02:47 -03:00
parent a88bc6730e
commit 77dcd007ad
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}