Fixed a problem with voicemail that was not including extensions that use a number alias.

This commit is contained in:
Mark Crane
2014-11-15 00:16:29 +00:00
parent 17b8c3ac69
commit a8d0972d41
3 changed files with 14 additions and 2 deletions

View File

@@ -43,7 +43,12 @@
//set the voicemail_id array
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