Make call_group available to provisioning (#4328)

Make v_extensions.call_group available to the provisioning engine for templates that pull from v_extensions for contacts.
This commit is contained in:
konradSC 2019-07-02 16:44:04 -04:00 committed by FusionPBX
parent bec05da9e9
commit 462af5e5b5
1 changed files with 2 additions and 1 deletions

View File

@ -970,7 +970,7 @@ include "root.php";
//get contacts from the database //get contacts from the database
$sql = "select extension_uuid as contact_uuid, directory_first_name, directory_last_name, "; $sql = "select extension_uuid as contact_uuid, directory_first_name, directory_last_name, ";
$sql .= "effective_caller_id_name, effective_caller_id_number, "; $sql .= "effective_caller_id_name, effective_caller_id_number, ";
$sql .= "number_alias, extension "; $sql .= "number_alias, extension, call_group ";
$sql .= "from v_extensions "; $sql .= "from v_extensions ";
$sql .= "where domain_uuid = '".$domain_uuid."' "; $sql .= "where domain_uuid = '".$domain_uuid."' ";
$sql .= "and enabled = 'true' "; $sql .= "and enabled = 'true' ";
@ -1008,6 +1008,7 @@ include "root.php";
$contacts[$uuid]['contact_name_given'] = $contact_name_given; $contacts[$uuid]['contact_name_given'] = $contact_name_given;
$contacts[$uuid]['contact_name_family'] = $contact_name_family; $contacts[$uuid]['contact_name_family'] = $contact_name_family;
$contacts[$uuid]['phone_extension'] = $phone_extension; $contacts[$uuid]['phone_extension'] = $phone_extension;
$contacts[$uuid]['call_group'] = $row['call_group'];
//unset the variables //unset the variables
unset($name_array, $contact_name_given, $contact_name_family, $phone_extension); unset($name_array, $contact_name_given, $contact_name_family, $phone_extension);
} }