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:
Mark Crane 2013-12-19 08:29:36 +00:00
parent 8a66839377
commit e53f2c56d4
1 changed files with 11 additions and 13 deletions

View File

@ -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,6 +922,7 @@ 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 "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n"; echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
@ -935,7 +934,6 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<span onclick=\"document.getElementById('show_vm_password').innerHTML = ''\">".$text['description-vm_password']." </span><span id='show_vm_password'></span>\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 "</td>\n";
echo "</tr>\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";