mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-10 10:38:22 +00:00
Add extension_type options: default, virtual
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
$apps[$x]['uuid'] = "e68d9689-2769-e013-28fa-6214bf47fca3";
|
||||
$apps[$x]['category'] = "Switch";
|
||||
$apps[$x]['subcategory'] = "";
|
||||
$apps[$x]['version'] = "1.0";
|
||||
$apps[$x]['version'] = "1.1";
|
||||
$apps[$x]['license'] = "Mozilla Public License 1.1";
|
||||
$apps[$x]['url'] = "http://www.fusionpbx.com";
|
||||
$apps[$x]['description']['en-us'] = "Used Configure SIP extensions.";
|
||||
@@ -232,7 +232,11 @@
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "user";
|
||||
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "extension_type";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "user";
|
||||
|
||||
//default settings
|
||||
$y=0;
|
||||
@@ -641,6 +645,10 @@
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "extension_type";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "enabled";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
|
||||
@@ -2127,6 +2127,56 @@ $text['label-extension_only']['zh-cn'] = "仅限分机";
|
||||
$text['label-extension_only']['ja-jp'] = "内線のみ";
|
||||
$text['label-extension_only']['ko-kr'] = "내선 전용";
|
||||
|
||||
$text['label-extension_type']['en-us'] = "Type";
|
||||
$text['label-extension_type']['ar-eg'] = "النوع";
|
||||
$text['label-extension_type']['de-at'] = "Art";
|
||||
$text['label-extension_type']['de-ch'] = "Art";
|
||||
$text['label-extension_type']['de-de'] = "Art";
|
||||
$text['label-extension_type']['es-cl'] = "Tipo";
|
||||
$text['label-extension_type']['es-mx'] = "Tipo";
|
||||
$text['label-extension_type']['fr-ca'] = "type";
|
||||
$text['label-extension_type']['fr-fr'] = "type";
|
||||
$text['label-extension_type']['he-il'] = "סוג";
|
||||
$text['label-extension_type']['it-it'] = "Tipo";
|
||||
$text['label-extension_type']['nl-nl'] = "Type";
|
||||
$text['label-extension_type']['pl-pl'] = "Typ";
|
||||
$text['label-extension_type']['pt-br'] = "Tipo";
|
||||
$text['label-extension_type']['pt-pt'] = "Tipo";
|
||||
$text['label-extension_type']['ro-ro'] = "Tip";
|
||||
$text['label-extension_type']['ru-ru'] = "Тип";
|
||||
$text['label-extension_type']['sv-se'] = "Typ";
|
||||
$text['label-extension_type']['uk-ua'] = "Tip";
|
||||
$text['label-extension_type']['tr-tr'] = "oluştur";
|
||||
$text['label-extension_type']['zh-cn'] = "类型";
|
||||
$text['label-extension_type']['ja-jp'] = "タイプ";
|
||||
$text['label-extension_type']['ko-kr'] = "유형";
|
||||
|
||||
$text['description-extension_type']['en-us'] = "Select Default to enable registration or to disable registration select Virtual.";
|
||||
$text['description-extension_type']['en-gb'] = "Select Default to enable registration or to disable registration select Virtual.";
|
||||
$text['description-extension_type']['ar-eg'] = "حدد افتراضي لتمكين التسجيل أو لتعطيل التسجيل حدد افتراضي.";
|
||||
$text['description-extension_type']['de-at'] = "Wählen Sie „Standard“, um die Registrierung zu aktivieren, oder wählen Sie „Virtuell“, um die Registrierung zu deaktivieren.";
|
||||
$text['description-extension_type']['de-ch'] = "Wählen Sie „Standard“, um die Registrierung zu aktivieren, oder wählen Sie „Virtuell“, um die Registrierung zu deaktivieren.";
|
||||
$text['description-extension_type']['de-de'] = "Wählen Sie „Standard“, um die Registrierung zu aktivieren, oder wählen Sie „Virtuell“, um die Registrierung zu deaktivieren.";
|
||||
$text['description-extension_type']['el-gr'] = "Επιλέξτε Προεπιλογή για να ενεργοποιήσετε την εγγραφή ή για να απενεργοποιήσετε την εγγραφή επιλέξτε Εικονική.";
|
||||
$text['description-extension_type']['es-cl'] = "Seleccione Predeterminado para habilitar el registro o para deshabilitar el registro, seleccione Virtual.";
|
||||
$text['description-extension_type']['es-mx'] = "Seleccione Predeterminado para habilitar el registro o para deshabilitar el registro, seleccione Virtual.";
|
||||
$text['description-extension_type']['fr-ca'] = "Sélectionnez Par défaut pour activer l'enregistrement ou pour désactiver l'enregistrement, sélectionnez Virtuel.";
|
||||
$text['description-extension_type']['fr-fr'] = "Sélectionnez Par défaut pour activer l'enregistrement ou pour désactiver l'enregistrement, sélectionnez Virtuel.";
|
||||
$text['description-extension_type']['he-il'] = "בחר ברירת מחדל כדי לאפשר רישום או כדי להשבית את הרישום בחר וירטואלי.";
|
||||
$text['description-extension_type']['it-it'] = "Selezionare Predefinito per abilitare la registrazione o per disabilitare la registrazione selezionare Virtuale.";
|
||||
$text['description-extension_type']['nl-nl'] = "Selecteer Standaard om registratie in te schakelen of selecteer Virtueel om registratie uit te schakelen.";
|
||||
$text['description-extension_type']['pl-pl'] = "Wybierz Domyślne, aby włączyć rejestrację lub aby wyłączyć rejestrację, wybierz Wirtualny.";
|
||||
$text['description-extension_type']['pt-br'] = "Selecione Padrão para habilitar o registro ou para desabilitar o registro, selecione Virtual.";
|
||||
$text['description-extension_type']['pt-pt'] = "Selecione Padrão para habilitar o registro ou para desabilitar o registro, selecione Virtual.";
|
||||
$text['description-extension_type']['ro-ro'] = "Selectați Implicit pentru a activa înregistrarea sau pentru a dezactiva înregistrarea selectați Virtual.";
|
||||
$text['description-extension_type']['ru-ru'] = "Выберите «По умолчанию», чтобы включить регистрацию, или, чтобы отключить регистрацию, выберите «Виртуальный».";
|
||||
$text['description-extension_type']['sv-se'] = "Välj Standard för att aktivera registrering eller för att inaktivera registrering välj Virtual.";
|
||||
$text['description-extension_type']['uk-ua'] = "Виберіть За замовчуванням, щоб увімкнути реєстрацію, або щоб вимкнути реєстрацію, виберіть Віртуальний.";
|
||||
$text['description-extension_type']['tr-tr'] = "Kaydı etkinleştirmek için Varsayılan'ı seçin veya kaydı devre dışı bırakmak için Sanal'ı seçin.";
|
||||
$text['description-extension_type']['zh-cn'] = "选择“默认”以启用注册,或选择“虚拟”以禁用注册。";
|
||||
$text['description-extension_type']['ja-jp'] = "登録を有効にする場合は「デフォルト」を選択し、登録を無効にする場合は「仮想」を選択します。";
|
||||
$text['description-extension_type']['ko-kr'] = "기본값을 선택하여 등록을 활성화하거나 등록을 비활성화하려면 가상을 선택합니다.";
|
||||
|
||||
$text['label-generate']['en-us'] = "Generate";
|
||||
$text['label-generate']['en-gb'] = "Generate";
|
||||
$text['label-generate']['ar-eg'] = "يولد";
|
||||
|
||||
@@ -98,6 +98,7 @@
|
||||
$mwi_account = $row["mwi_account"];
|
||||
$sip_bypass_media = $row["sip_bypass_media"];
|
||||
$dial_string = $row["dial_string"];
|
||||
$extension_type = $row["extension_type"];
|
||||
$enabled = $row["enabled"];
|
||||
$description = $row["description"].' ('.$text['button-copy'].')';
|
||||
}
|
||||
@@ -136,6 +137,7 @@
|
||||
$array['extensions'][0]['mwi_account'] = $mwi_account;
|
||||
$array['extensions'][0]['sip_bypass_media'] = $sip_bypass_media;
|
||||
$array['extensions'][0]['dial_string'] = $dial_string;
|
||||
$array['extensions'][0]['extension_type'] = $extension_type;
|
||||
$array['extensions'][0]['enabled'] = $enabled;
|
||||
$array['extensions'][0]['description'] = $description;
|
||||
$database = new database;
|
||||
|
||||
@@ -132,6 +132,7 @@
|
||||
$absolute_codec_string = $_POST["absolute_codec_string"];
|
||||
$force_ping = $_POST["force_ping"];
|
||||
$dial_string = $_POST["dial_string"];
|
||||
$extension_type = $_POST["extension_type"];
|
||||
$enabled = $_POST["enabled"] ?? 'false';
|
||||
$description = $_POST["description"];
|
||||
|
||||
@@ -530,6 +531,9 @@
|
||||
$array["extensions"][$i]["dial_string"] = $dial_string;
|
||||
}
|
||||
}
|
||||
if (permission_exists('extension_type')) {
|
||||
$array["extensions"][$i]["extension_type"] = $extension_type;
|
||||
}
|
||||
if (permission_exists('extension_enabled')) {
|
||||
$array["extensions"][$i]["enabled"] = $enabled;
|
||||
}
|
||||
@@ -884,6 +888,7 @@
|
||||
$absolute_codec_string = $row["absolute_codec_string"];
|
||||
$force_ping = $row["force_ping"];
|
||||
$dial_string = $row["dial_string"];
|
||||
$extension_type = $row["extension_type"];
|
||||
$enabled = $row["enabled"];
|
||||
$description = $row["description"];
|
||||
}
|
||||
@@ -1967,6 +1972,22 @@
|
||||
echo "</tr>\n";
|
||||
}
|
||||
|
||||
if (permission_exists('extension_type')) {
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
echo " ".$text['label-extension_type']."\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <select class='formfld' name='extension_type' id='extension_type'>\n";
|
||||
echo " <option value='default' ".(($extension_type == "default") ? "selected='selected'" : null).">".$text['label-default']."</option>\n";
|
||||
echo " <option value='virtual' ".(($extension_type == "virtual") ? "selected='selected'" : null).">".$text['label-virtual']."</option>\n";
|
||||
echo " </select>\n";
|
||||
echo "<br />\n";
|
||||
echo $text['description-extension_type']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
}
|
||||
|
||||
if (permission_exists('extension_domain')) {
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
|
||||
Reference in New Issue
Block a user