diff --git a/app/extensions/app_config.php b/app/extensions/app_config.php index 2db773766c..226788947b 100644 --- a/app/extensions/app_config.php +++ b/app/extensions/app_config.php @@ -131,14 +131,14 @@ $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'] = 'mailbox'; - $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'] = 'vm_password'; - $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'] = 'mailbox'; + //$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'] = 'vm_password'; + //$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'] = 'accountcode'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ''; @@ -183,21 +183,21 @@ $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'] = 'vm_enabled'; - $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'] = 'vm_mailto'; - $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'] = 'vm_attach_file'; - $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'] = 'vm_keep_local_after_email'; - $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; - $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ''; + //$apps[$x]['db'][$y]['fields'][$z]['name'] = 'vm_enabled'; + //$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'] = 'vm_mailto'; + //$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'] = 'vm_attach_file'; + //$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'] = 'vm_keep_local_after_email'; + //$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'] = 'user_context'; $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text'; diff --git a/app/extensions/extension_edit.php b/app/extensions/extension_edit.php index 3931adacd2..afea4c24de 100644 --- a/app/extensions/extension_edit.php +++ b/app/extensions/extension_edit.php @@ -293,7 +293,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { $sql .= "extension, "; $sql .= "number_alias, "; $sql .= "password, "; - $sql .= "vm_password, "; + //$sql .= "vm_password, "; $sql .= "accountcode, "; $sql .= "effective_caller_id_name, "; $sql .= "effective_caller_id_number, "; @@ -305,10 +305,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { $sql .= "directory_exten_visible, "; $sql .= "limit_max, "; $sql .= "limit_destination, "; - $sql .= "vm_enabled, "; - $sql .= "vm_mailto, "; - $sql .= "vm_attach_file, "; - $sql .= "vm_keep_local_after_email, "; + //$sql .= "vm_enabled, "; + //$sql .= "vm_mailto, "; + //$sql .= "vm_attach_file, "; + //$sql .= "vm_keep_local_after_email, "; $sql .= "user_context, "; if (permission_exists('extension_toll')) { $sql .= "toll_allow, "; @@ -342,7 +342,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { $sql .= "'$extension', "; $sql .= "'$number_alias', "; $sql .= "'$password', "; - $sql .= "'user-choose', "; + //$sql .= "'user-choose', "; $sql .= "'$accountcode', "; $sql .= "'$effective_caller_id_name', "; $sql .= "'$effective_caller_id_number', "; @@ -354,10 +354,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { $sql .= "'$directory_exten_visible', "; $sql .= "'$limit_max', "; $sql .= "'$limit_destination', "; - $sql .= "'$vm_enabled', "; - $sql .= "'$vm_mailto', "; - $sql .= "'$vm_attach_file', "; - $sql .= "'$vm_keep_local_after_email', "; + //$sql .= "'$vm_enabled', "; + //$sql .= "'$vm_mailto', "; + //$sql .= "'$vm_attach_file', "; + //$sql .= "'$vm_keep_local_after_email', "; $sql .= "'$user_context', "; if (permission_exists('extension_toll')) { $sql .= "'$toll_allow', "; @@ -436,7 +436,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { $sql .= "extension = '$extension', "; $sql .= "number_alias = '$number_alias', "; $sql .= "password = '$password', "; - $sql .= "vm_password = '$vm_password', "; + //$sql .= "vm_password = '$vm_password', "; $sql .= "accountcode = '$accountcode', "; $sql .= "effective_caller_id_name = '$effective_caller_id_name', "; $sql .= "effective_caller_id_number = '$effective_caller_id_number', "; @@ -448,10 +448,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { $sql .= "directory_exten_visible = '$directory_exten_visible', "; $sql .= "limit_max = '$limit_max', "; $sql .= "limit_destination = '$limit_destination', "; - $sql .= "vm_enabled = '$vm_enabled', "; - $sql .= "vm_mailto = '$vm_mailto', "; - $sql .= "vm_attach_file = '$vm_attach_file', "; - $sql .= "vm_keep_local_after_email = '$vm_keep_local_after_email', "; + //$sql .= "vm_enabled = '$vm_enabled', "; + //$sql .= "vm_mailto = '$vm_mailto', "; + //$sql .= "vm_attach_file = '$vm_attach_file', "; + //$sql .= "vm_keep_local_after_email = '$vm_keep_local_after_email', "; $sql .= "user_context = '$user_context', "; if (permission_exists('extension_toll')) { $sql .= "toll_allow = '$toll_allow', "; @@ -531,7 +531,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { //delete extension from memcache $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); if ($fp) { - $switch_cmd = "memcache delete directory:".$extension."@".$_SESSION['domain_name']; + $switch_cmd = "memcache delete directory:".$extension."@".$user_context; $switch_result = event_socket_request($fp, 'api '.$switch_cmd); } } diff --git a/app/extensions/extensions.php b/app/extensions/extensions.php index 49f54cefd3..e2ab44bb92 100644 --- a/app/extensions/extensions.php +++ b/app/extensions/extensions.php @@ -117,7 +117,7 @@ require_once "resources/paging.php"; echo "