mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-04 10:43:49 +00:00
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:
@@ -970,7 +970,7 @@ include "root.php";
|
||||
//get contacts from the database
|
||||
$sql = "select extension_uuid as contact_uuid, directory_first_name, directory_last_name, ";
|
||||
$sql .= "effective_caller_id_name, effective_caller_id_number, ";
|
||||
$sql .= "number_alias, extension ";
|
||||
$sql .= "number_alias, extension, call_group ";
|
||||
$sql .= "from v_extensions ";
|
||||
$sql .= "where domain_uuid = '".$domain_uuid."' ";
|
||||
$sql .= "and enabled = 'true' ";
|
||||
@@ -1008,6 +1008,7 @@ include "root.php";
|
||||
$contacts[$uuid]['contact_name_given'] = $contact_name_given;
|
||||
$contacts[$uuid]['contact_name_family'] = $contact_name_family;
|
||||
$contacts[$uuid]['phone_extension'] = $phone_extension;
|
||||
$contacts[$uuid]['call_group'] = $row['call_group'];
|
||||
//unset the variables
|
||||
unset($name_array, $contact_name_given, $contact_name_family, $phone_extension);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user