Restrict Call Center greeting to applications to playback, say, tone_stream, and phrase.

This commit is contained in:
FusionPBX 2020-12-09 20:00:39 -07:00 committed by GitHub
parent d7dd1a9b1d
commit edb9a6e269
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -330,7 +330,9 @@
$dialplan_xml .= " <action application=\"playback\" data=\"".$queue_greeting_path."\"/>\n";
}
else {
$dialplan_xml .= " <action application=\"".$greeting_array[0]."\" data=\"".$greeting_array[1]."\"/>\n";
if ($greeting_array[0] == 'say' || $greeting_array[0] == 'tone_stream' || $greeting_array[0] == 'phrase') {
$dialplan_xml .= " <action application=\"".$greeting_array[0]."\" data=\"".$greeting_array[1]."\"/>\n";
}
}
}
if (strlen($queue_cid_prefix) > 0) {