Fix voicemail creation for ranges (#2945)
This commit is contained in:
parent
8895402f28
commit
6620dd0370
|
|
@ -278,6 +278,7 @@
|
||||||
//extension does not exist add it
|
//extension does not exist add it
|
||||||
if ($action == "add" || $range > 1) {
|
if ($action == "add" || $range > 1) {
|
||||||
$extension_uuid = uuid();
|
$extension_uuid = uuid();
|
||||||
|
$voicemail_uuid = uuid();
|
||||||
$password = generate_password();
|
$password = generate_password();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -423,6 +424,7 @@
|
||||||
//increment the extension number
|
//increment the extension number
|
||||||
if ($action != "update") {
|
if ($action != "update") {
|
||||||
$extension++;
|
$extension++;
|
||||||
|
$voicemail_id = $extension;
|
||||||
|
|
||||||
if (strlen($number_alias) > 0) {
|
if (strlen($number_alias) > 0) {
|
||||||
$number_alias++;
|
$number_alias++;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue