Fixed a problem with voicemail that was not including extensions that use a number alias.
This commit is contained in:
@@ -43,7 +43,12 @@
|
|||||||
|
|
||||||
//set the voicemail_id array
|
//set the voicemail_id array
|
||||||
foreach ($_SESSION['user']['extension'] as $value) {
|
foreach ($_SESSION['user']['extension'] as $value) {
|
||||||
$voicemail_ids[]['voicemail_id'] = $value['user'];
|
if (strlen($row['number_alias']) > 0) {
|
||||||
|
$voicemail_ids[]['voicemail_id'] = $row['number_alias'];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$voicemail_ids[]['voicemail_id'] = $row['user'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//get the uuid and voicemail_id
|
//get the uuid and voicemail_id
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ else {
|
|||||||
echo "access denied";
|
echo "access denied";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
require_once "app_languages.php";
|
require_once "app_languages.php";
|
||||||
foreach($text as $key => $value) {
|
foreach($text as $key => $value) {
|
||||||
@@ -41,7 +42,12 @@ else {
|
|||||||
|
|
||||||
//set the voicemail_id array
|
//set the voicemail_id array
|
||||||
foreach ($_SESSION['user']['extension'] as $value) {
|
foreach ($_SESSION['user']['extension'] as $value) {
|
||||||
$voicemail_ids[]['voicemail_id'] = $value['user'];
|
if (strlen($row['number_alias']) > 0) {
|
||||||
|
$voicemail_ids[]['voicemail_id'] = $row['number_alias'];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$voicemail_ids[]['voicemail_id'] = $row['user'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//get the http values and set them as variables
|
//get the http values and set them as variables
|
||||||
|
|||||||
@@ -178,6 +178,7 @@ function load_extensions() {
|
|||||||
$x = 0;
|
$x = 0;
|
||||||
foreach($result as $row) {
|
foreach($result as $row) {
|
||||||
$_SESSION['user']['extension'][$x]['user'] = $row['extension'];
|
$_SESSION['user']['extension'][$x]['user'] = $row['extension'];
|
||||||
|
$_SESSION['user']['extension'][$x]['number_alias'] = $row['number_alias'];
|
||||||
$_SESSION['user']['extension'][$x]['extension_uuid'] = $row['extension_uuid'];
|
$_SESSION['user']['extension'][$x]['extension_uuid'] = $row['extension_uuid'];
|
||||||
$_SESSION['user']['extension'][$x]['outbound_caller_id_name'] = $row['outbound_caller_id_name'];
|
$_SESSION['user']['extension'][$x]['outbound_caller_id_name'] = $row['outbound_caller_id_name'];
|
||||||
$_SESSION['user']['extension'][$x]['outbound_caller_id_number'] = $row['outbound_caller_id_number'];
|
$_SESSION['user']['extension'][$x]['outbound_caller_id_number'] = $row['outbound_caller_id_number'];
|
||||||
|
|||||||
Reference in New Issue
Block a user