Call Center greeting improve support for say and tone_stream.
This commit is contained in:
parent
842bcd93ee
commit
d7dd1a9b1d
|
|
@ -325,7 +325,13 @@
|
||||||
$dialplan_xml .= " <action application=\"answer\" data=\"\"/>\n";
|
$dialplan_xml .= " <action application=\"answer\" data=\"\"/>\n";
|
||||||
$dialplan_xml .= " <action application=\"set\" data=\"hangup_after_bridge=true\"/>\n";
|
$dialplan_xml .= " <action application=\"set\" data=\"hangup_after_bridge=true\"/>\n";
|
||||||
if ($queue_greeting_path != '') {
|
if ($queue_greeting_path != '') {
|
||||||
$dialplan_xml .= " <action application=\"playback\" data=\"".$queue_greeting_path."\"/>\n";
|
$greeting_array = explode(':', $queue_greeting_path);
|
||||||
|
if (count($greeting_array) == 1) {
|
||||||
|
$dialplan_xml .= " <action application=\"playback\" data=\"".$queue_greeting_path."\"/>\n";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$dialplan_xml .= " <action application=\"".$greeting_array[0]."\" data=\"".$greeting_array[1]."\"/>\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (strlen($queue_cid_prefix) > 0) {
|
if (strlen($queue_cid_prefix) > 0) {
|
||||||
$dialplan_xml .= " <action application=\"set\" data=\"effective_caller_id_name=".$queue_cid_prefix."#\${caller_id_name}\"/>\n";
|
$dialplan_xml .= " <action application=\"set\" data=\"effective_caller_id_name=".$queue_cid_prefix."#\${caller_id_name}\"/>\n";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue