Add an option to record calls for an extension.

This commit is contained in:
Mark Crane
2014-04-02 06:43:11 +00:00
parent 6f412254a1
commit 68d6a3b204
2 changed files with 56 additions and 0 deletions

View File

@@ -312,6 +312,31 @@
$text['description-call_group']['pt-pt'] = "Introduza o grupo a associar ao utilizador aqui. Grupos disponíveis por omissão: vendas, suporte, facturação.";
$text['description-call_group']['fr-fr'] = "Insérer le groupe d'appel de l'utilisateur. Les groupes disponibles par défaut sont: sales, support, billing.";
$text['label-record']['en-us'] = "Record";
$text['label-record']['es-cl'] = "Registro";
$text['label-record']['pt-pt'] = "Registro";
$text['label-record']['fr-fr'] = "Record";
$text['description-record']['en-us'] = "Select inbound, outbound or all to record calls.";
$text['description-record']['es-cl'] = "Seleccione entrantes, salientes o para grabar todas las llamadas.";
$text['description-record']['pt-pt'] = "Selecione inbound, outbound ou para gravar todas as chamadas.";
$text['description-record']['fr-fr'] = "Sélectionnez entrants, sortants ou à enregistrer tous les appels.";
$text['label-record_all']['en-us'] = "All";
$text['label-record_all']['es-cl'] = "Todo";
$text['label-record_all']['pt-pt'] = "Tudo";
$text['label-record_all']['fr-fr'] = "Tout";
$text['label-record_inbound']['en-us'] = "Inbound";
$text['label-record_inbound']['es-cl'] = "Entrante";
$text['label-record_inbound']['pt-pt'] = "Entrada";
$text['label-record_inbound']['fr-fr'] = "Entrante";
$text['label-record_outbound']['en-us'] = "Outbound";
$text['label-record_outbound']['es-cl'] = "Salida";
$text['label-record_outbound']['pt-pt'] = "Saída";
$text['label-record_outbound']['fr-fr'] = "Sortant";
$text['label-hold_music']['en-us'] = "Hold Music";
$text['label-hold_music']['es-cl'] = "Música en Espera";
$text['label-hold_music']['pt-pt'] = "Música em Espera";

View File

@@ -1461,6 +1461,37 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-record'].":\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <select class='formfld' name='record'>\n";
echo " <option value=''></option>\n";
if ($record == "all") {
echo " <option value='all' selected='selected'>".$text['label-record_all']."</option>\n";
}
else {
echo " <option value='all'>".$text['label-record_all']."</option>\n";
}
if ($record == "inbound") {
echo " <option value='inbound' selected='selected'>".$text['label-record_inbound']."</option>\n";
}
else {
echo " <option value='inbound'>".$text['label-record_inbound']."</option>\n";
}
if ($record == "outbound") {
echo " <option value='outbound' selected='selected'>".$text['label-record_outbound']."</option>\n";
}
else {
echo " <option value='outbound'>".$text['label-record_outbound']."</option>\n";
}
echo " </select>\n";
echo "<br />\n";
echo $text['description-record']."\n";
echo "</td>\n";
echo "</tr>\n";
if (is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/music_on_hold')) {
echo "<tr>\n";
echo "<td width=\"30%\" class='vncell' valign='top' align='left' nowrap='nowrap'>\n";