diff --git a/app/devices/app_languages.php b/app/devices/app_languages.php index df445f3f10..9db06feae2 100644 --- a/app/devices/app_languages.php +++ b/app/devices/app_languages.php @@ -1822,6 +1822,84 @@ $text['label-speed_dial_blf']['de-at'] = ""; $text['label-speed_dial_blf']['ar-eg'] = ""; $text['label-speed_dial_blf']['he'] = ""; +$text['label-ent_phone_book']['en-us'] = "Enterprise Phonebook"; +$text['label-ent_phone_book']['es-cl'] = ""; +$text['label-ent_phone_book']['pt-pt'] = ""; +$text['label-ent_phone_book']['fr-fr'] = ""; +$text['label-ent_phone_book']['pt-br'] = ""; +$text['label-ent_phone_book']['pl'] = ""; +$text['label-ent_phone_book']['uk'] = ""; +$text['label-ent_phone_book']['sv-se'] = ""; +$text['label-ent_phone_book']['ro'] = ""; +$text['label-ent_phone_book']['de-at'] = ""; +$text['label-ent_phone_book']['ar-eg'] = ""; +$text['label-ent_phone_book']['he'] = ""; + +$text['label-missed_calls']['en-us'] = "Missed Calls"; +$text['label-missed_calls']['es-cl'] = ""; +$text['label-missed_calls']['pt-pt'] = ""; +$text['label-missed_calls']['fr-fr'] = ""; +$text['label-missed_calls']['pt-br'] = ""; +$text['label-missed_calls']['pl'] = ""; +$text['label-missed_calls']['uk'] = ""; +$text['label-missed_calls']['sv-se'] = ""; +$text['label-missed_calls']['ro'] = ""; +$text['label-missed_calls']['de-at'] = ""; +$text['label-missed_calls']['ar-eg'] = ""; +$text['label-missed_calls']['he'] = ""; + +$text['label-received_calls']['en-us'] = "Received Calls"; +$text['label-received_calls']['es-cl'] = ""; +$text['label-received_calls']['pt-pt'] = ""; +$text['label-received_calls']['fr-fr'] = ""; +$text['label-received_calls']['pt-br'] = ""; +$text['label-received_calls']['pl'] = ""; +$text['label-received_calls']['uk'] = ""; +$text['label-received_calls']['sv-se'] = ""; +$text['label-received_calls']['ro'] = ""; +$text['label-received_calls']['de-at'] = ""; +$text['label-received_calls']['ar-eg'] = ""; +$text['label-received_calls']['he'] = ""; + +$text['label-dialed_calls']['en-us'] = "Dialed Calls"; +$text['label-dialed_calls']['es-cl'] = ""; +$text['label-dialed_calls']['pt-pt'] = ""; +$text['label-dialed_calls']['fr-fr'] = ""; +$text['label-dialed_calls']['pt-br'] = ""; +$text['label-dialed_calls']['pl'] = ""; +$text['label-dialed_calls']['uk'] = ""; +$text['label-dialed_calls']['sv-se'] = ""; +$text['label-dialed_calls']['ro'] = ""; +$text['label-dialed_calls']['de-at'] = ""; +$text['label-dialed_calls']['ar-eg'] = ""; +$text['label-dialed_calls']['he'] = ""; + +$text['label-enable_account']['en-us'] = "Enable/Disable SIP Account"; +$text['label-enable_account']['es-cl'] = ""; +$text['label-enable_account']['pt-pt'] = ""; +$text['label-enable_account']['fr-fr'] = ""; +$text['label-enable_account']['pt-br'] = ""; +$text['label-enable_account']['pl'] = ""; +$text['label-enable_account']['uk'] = ""; +$text['label-enable_account']['sv-se'] = ""; +$text['label-enable_account']['ro'] = ""; +$text['label-enable_account']['de-at'] = ""; +$text['label-enable_account']['ar-eg'] = ""; +$text['label-enable_account']['he'] = ""; + +$text['label-provison_now']['en-us'] = "Auto Provison Now"; +$text['label-provison_now']['es-cl'] = ""; +$text['label-provison_now']['pt-pt'] = ""; +$text['label-provison_now']['fr-fr'] = ""; +$text['label-provison_now']['pt-br'] = ""; +$text['label-provison_now']['pl'] = ""; +$text['label-provison_now']['uk'] = ""; +$text['label-provison_now']['sv-se'] = ""; +$text['label-provison_now']['ro'] = ""; +$text['label-provison_now']['de-at'] = ""; +$text['label-provison_now']['ar-eg'] = ""; +$text['label-provison_now']['he'] = ""; + //Additional translations $text['header-profiles']['en-us'] = "Profiles"; $text['header-profiles']['es-cl'] = "Perfiles"; diff --git a/app/devices/device_edit.php b/app/devices/device_edit.php index 34f577c9d0..e3caeed460 100644 --- a/app/devices/device_edit.php +++ b/app/devices/device_edit.php @@ -1044,9 +1044,9 @@ require_once "resources/require.php"; if (strlen($device_vendor) == 0) { echo ""; } } if (strtolower($device_vendor) == "escene" || strlen($device_vendor) == 0 || strlen($device_username) > 0) { - echo ""; - $match_vendor = (strtolower($device_key_vendor) == "escene"); ?> + "; ?> + @@ -1055,9 +1055,32 @@ require_once "resources/require.php"; - - "; } + + "; ?> + "; ?> + + + + + + + + + + + + + + + + + + + + + + > */?> + "; ?> } if (strtolower($device_vendor) == "grandstream" || strlen($device_vendor) == 0 || strlen($device_username) > 0) { echo ""; diff --git a/app/devices/device_profile_edit.php b/app/devices/device_profile_edit.php index bf0660fdb6..aebae3ef90 100644 --- a/app/devices/device_profile_edit.php +++ b/app/devices/device_profile_edit.php @@ -429,21 +429,44 @@ require_once "resources/require.php"; "; } } - if (strtolower($device_vendor) == "escene" || strlen($device_vendor) == 0) { - if (strlen($device_vendor) == 0) { echo ""; } + if (strtolower($device_vendor) == "escene" || strtolower($device_vendor) == "escene programmable" || strlen($device_vendor) == 0) { ?> - - - - - - - - - - "; } - } + "; ?> + + + + + + + + + + "; ?> + "; ?> + + + + + + + + + + + + + + + + + + + + + + > */?> + "; ?> + "; } ?> diff --git a/app/provision/resources/classes/provision.php b/app/provision/resources/classes/provision.php index 0be25cc5c6..8d4b512464 100644 --- a/app/provision/resources/classes/provision.php +++ b/app/provision/resources/classes/provision.php @@ -659,7 +659,12 @@ include "root.php"; $sql .= "or device_profile_uuid = '".$device_profile_uuid."' "; } $sql .= ") "; - $sql .= "AND (lower(device_key_vendor) = '".$device_vendor."' or device_key_vendor is null) "; + if(strtolower($device_vendor) == 'escene'){ + $sql .= "AND (lower(device_key_vendor) = 'escene' or lower(device_key_vendor) = 'escene programmable' or device_key_vendor is null) "; + } + else { + $sql .= "AND (lower(device_key_vendor) = '".$device_vendor."' or device_key_vendor is null) "; + } $sql .= "ORDER BY device_key_category asc, device_key_id asc, device_uuid desc"; $prep_statement = $this->db->prepare(check_sql($sql)); $prep_statement->execute(); diff --git a/resources/templates/provision/escene/e3xx/{$mac}_extern.xml b/resources/templates/provision/escene/e3xx/{$mac}_extern.xml index 2e9ec30265..c90cdab531 100644 --- a/resources/templates/provision/escene/e3xx/{$mac}_extern.xml +++ b/resources/templates/provision/escene/e3xx/{$mac}_extern.xml @@ -1,18 +1,68 @@ +{foreach $keys as $row} + {if $row.device_key_line==""} + {$row.device_key_line="127"} + {/if} +{/foreach} {$is_first_line='true'} {foreach $keys as $row} {if $row.device_key_category=="memory"} {if $row.device_key_id!=""} - {if $row.device_key_line==""} - {$row.device_key_line="127"} - {/if} {/if} {/if} {/foreach} + + + {foreach $keys as $row} + {if $row.device_key_category=="programmable"} + + {/if} + {/foreach} + + {foreach $keys as $row} {if $row.device_key_category=="expansion"}