When adding an extension allow the voicemail password to be defined. If it is left empty then a random voicemail password is created.
This commit is contained in:
parent
8a66839377
commit
e53f2c56d4
|
|
@ -466,8 +466,6 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
$ext->description = $description;
|
$ext->description = $description;
|
||||||
$ext->voicemail();
|
$ext->voicemail();
|
||||||
unset($ext);
|
unset($ext);
|
||||||
//unset the voicemail password
|
|
||||||
$vm_password = "";
|
|
||||||
//increment the extension number
|
//increment the extension number
|
||||||
$extension++;
|
$extension++;
|
||||||
}
|
}
|
||||||
|
|
@ -924,19 +922,19 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||||
echo " <br />\n";
|
echo " <br />\n";
|
||||||
echo " </td>";
|
echo " </td>";
|
||||||
echo " </tr>";
|
echo " </tr>";
|
||||||
|
|
||||||
echo "<tr>\n";
|
|
||||||
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
|
||||||
echo " ".$text['label-vm_password'].":\n";
|
|
||||||
echo "</td>\n";
|
|
||||||
echo "<td class='vtable' align='left'>\n";
|
|
||||||
echo " <input class='formfld' type='password' name='vm_password' id='vm_password' onfocus=\"document.getElementById('show_vm_password').innerHTML = '".$text['label-password'].": '+document.getElementById('vm_password').value;\" maxlength='255' value='$vm_password'>\n";
|
|
||||||
echo "<br />\n";
|
|
||||||
echo "<span onclick=\"document.getElementById('show_vm_password').innerHTML = ''\">".$text['description-vm_password']." </span><span id='show_vm_password'></span>\n";
|
|
||||||
echo "</td>\n";
|
|
||||||
echo "</tr>\n";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo "<tr>\n";
|
||||||
|
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||||
|
echo " ".$text['label-vm_password'].":\n";
|
||||||
|
echo "</td>\n";
|
||||||
|
echo "<td class='vtable' align='left'>\n";
|
||||||
|
echo " <input class='formfld' type='password' name='vm_password' id='vm_password' onfocus=\"document.getElementById('show_vm_password').innerHTML = '".$text['label-password'].": '+document.getElementById('vm_password').value;\" maxlength='255' value='$vm_password'>\n";
|
||||||
|
echo "<br />\n";
|
||||||
|
echo "<span onclick=\"document.getElementById('show_vm_password').innerHTML = ''\">".$text['description-vm_password']." </span><span id='show_vm_password'></span>\n";
|
||||||
|
echo "</td>\n";
|
||||||
|
echo "</tr>\n";
|
||||||
|
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||||
echo " ".$text['label-accountcode'].":\n";
|
echo " ".$text['label-accountcode'].":\n";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue