When greeting is used a short sleep is required

Without the sleep may miss the beginning of the recording.
This commit is contained in:
FusionPBX 2022-12-23 10:03:29 -07:00 committed by GitHub
parent 0afe985352
commit 6a3f7e95a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -354,6 +354,7 @@
$dialplan_xml .= " <action application=\"set\" data=\"cc_base_score=".$queue_time_base_score_sec."\"/>\n";
}
if ($queue_greeting_path != '') {
$dialplan_xml .= " <action application=\"sleep\" data=\"1000\"/>\n";
$greeting_array = explode(':', $queue_greeting_path);
if (count($greeting_array) == 1) {
$dialplan_xml .= " <action application=\"playback\" data=\"".$queue_greeting_path."\"/>\n";