Change the recording playback in the destination select list to use the new streamfile.lua.
This commit is contained in:
parent
058dcb0f0e
commit
3a1c749f8f
|
|
@ -1258,18 +1258,18 @@ function switch_select_destination($select_type, $select_label, $select_name, $s
|
||||||
if ($ivr_menu_greet_long == $_SESSION['switch']['recordings']['dir']."/".$file) {
|
if ($ivr_menu_greet_long == $_SESSION['switch']['recordings']['dir']."/".$file) {
|
||||||
$tmp_selected = true;
|
$tmp_selected = true;
|
||||||
if ($select_type == "dialplan") {
|
if ($select_type == "dialplan") {
|
||||||
echo " <option value='playback:".$_SESSION['switch']['recordings']['dir']."/".$file."' selected='selected'>".$file."</option>\n";
|
echo " <option value='lua:streamfile.lua ".$_SESSION['switch']['recordings']['dir']."/".$file."' selected='selected'>".$file."</option>\n";
|
||||||
}
|
}
|
||||||
if ($select_type == "ivr") {
|
if ($select_type == "ivr") {
|
||||||
echo " <option value='menu-exec-app:playback ".$_SESSION['switch']['recordings']['dir']."/".$file."' selected='selected'>".$file."</option>\n";
|
echo " <option value='menu-exec-app:lua streamfile.lua ".$_SESSION['switch']['recordings']['dir']."/".$file."' selected='selected'>".$file."</option>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if ($select_type == "dialplan") {
|
if ($select_type == "dialplan") {
|
||||||
echo " <option value='playback:".$_SESSION['switch']['recordings']['dir']."/".$file."'>".$file."</option>\n";
|
echo " <option value='lua:streamfile.lua ".$_SESSION['switch']['recordings']['dir']."/".$file."'>".$file."</option>\n";
|
||||||
}
|
}
|
||||||
if ($select_type == "ivr") {
|
if ($select_type == "ivr") {
|
||||||
echo " <option value='menu-exec-app:playback ".$_SESSION['switch']['recordings']['dir']."/".$file."'>".$file."</option>\n";
|
echo " <option value='menu-exec-app:lua streamfile.lua ".$_SESSION['switch']['recordings']['dir']."/".$file."'>".$file."</option>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -3198,4 +3198,4 @@ if (!function_exists('save_switch_xml')) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
Loading…
Reference in New Issue