Changeset 3627
- Timestamp:
- 01/24/07 13:07:40 (2 years ago)
- Files:
-
- modules/branches/2.3/voicemail/functions.inc.php (modified) (8 diffs)
- modules/branches/2.3/voicemail/module.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.3/voicemail/functions.inc.php
r3361 r3627 76 76 $tech_hardware = isset($_REQUEST['tech_hardware'])?$_REQUEST['tech_hardware']:null; 77 77 78 79 78 // We only want to hook 'users' or 'extensions' pages. 80 79 if ($pagename != 'users' && $pagename != 'extensions') … … 107 106 $currentcomponent->addoptlistitem('vmena', 'disabled', 'Disabled'); 108 107 $currentcomponent->setoptlistopts('vmena', 'sort', false); 108 // Enable / Disable vmx list 109 $currentcomponent->addoptlistitem('vmxena', '', 'Disabled'); 110 $currentcomponent->addoptlistitem('vmxena', 'checked', 'Enabled'); 111 $currentcomponent->setoptlistopts('vmxena', 'sort', false); 109 112 // Yes / No Radio button list 110 113 $currentcomponent->addoptlistitem('vmyn', 'yes', 'yes'); … … 125 128 $extn = isset($_REQUEST['extension'])?$_REQUEST['extension']:null; 126 129 $display = isset($_REQUEST['display'])?$_REQUEST['display']:null; 127 130 128 131 if ($ext==='') { 129 132 $extdisplay = $extn; … … 131 134 $extdisplay = $ext; 132 135 } 136 137 133 138 if ($action != 'del') { 134 139 $vmbox = voicemail_mailbox_get($extdisplay); … … 141 146 $pager = null; 142 147 $vmoptions = null; 148 149 $vmx_state = ''; 143 150 } else { 144 151 $incontext = isset($vmbox['vmcontext'])?$vmbox['vmcontext']:'default'; … … 149 156 $vmoptions = $vmbox['options']; 150 157 $vm = true; 158 159 $vmx_state = voicemail_vmxGet($extdisplay); 151 160 } 152 161 … … 205 214 $currentcomponent->addguielem($section, new gui_textbox('options', $options, 'vm options', 'Separate options with pipe ( | )<br><br>ie: review=yes|maxmessage=60')); 206 215 $currentcomponent->addguielem($section, new gui_textbox('vmcontext', $vmcontext, 'vm context', '', "frm_${display}_isVoiceMailEnabled() && isEmpty()", $msgInvalidVMContext, false)); 216 $currentcomponent->addguielem($section, new gui_selectbox('vmx_state', $currentcomponent->getoptlist('vmxena'), $vmx_state, 'VmX IVR', 'Enable/Disable the Extended Voicemail IVR ability on this extension. Defaults will be set an d the user can make changes in the ARI or equivalent portal. Unchecking will disabled the feature but not delete any existing settings', false)); 207 217 } 208 218 } … … 330 340 } 331 341 342 function voicemail_vmxGet($extension) { 343 global $astman; 344 345 // Retrieve the state 346 $vmx_state=$astman->database_get("AMPUSER",$extension."/vmx/unavail/state"); 347 if (isset($vmx_state) && (trim($vmx_state) == 'enabled' || trim($vmx_state) == 'disabled')) { 348 $vmx_state='checked'; 349 } else { 350 $vmx_state=''; 351 } 352 353 return $vmx_state; 354 } 355 356 332 357 ?> modules/branches/2.3/voicemail/module.xml
r3362 r3627 2 2 <rawname>voicemail</rawname> 3 3 <name>Voicemail</name> 4 <version>1.6 </version>4 <version>1.6.1</version> 5 5 <changelog> 6 *1.6* Re-Fix 1.5.2, bump version for 2.2rc2 release. 6 *1.6.1* Added support to enable/disable VmX Locator (personal ivr) 7 *1.6* Re-Fix 1.5.2, bump version for 2.2rc2 release. 7 8 *1.5.3* Fix for vm Javascript sanity checks only working in DevAndUser mode. 8 9 *1.5.2* Fix vm not appearing in DeviceAndUser mode
