Changeset 4326
- Timestamp:
- 07/07/07 10:11:24 (2 years ago)
- Files:
-
- modules/branches/2.3/core/functions.inc.php (modified) (4 diffs)
- modules/branches/2.3/core/module.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.3/core/functions.inc.php
r4320 r4326 1360 1360 $astman->database_put("AMPUSER",$extension."/voicemail","\"".isset($voicemail)?$voicemail:''."\""); 1361 1361 $astman->database_put("AMPUSER",$extension."/device","\"".isset($device)?$device:''."\""); 1362 if ($amp_conf['ENABLECW']) { 1362 1363 if (trim($callwaiting) == 'enabled') { 1363 1364 $astman->database_put("CW",$extension,"\"ENABLED\""); 1365 } else if (trim($callwaiting) == 'disabled') { 1366 $astman->database_del("CW",$extension); 1367 } else { 1368 echo "ERROR: this state should not exist<br>"; 1364 1369 } 1365 1370 … … 1433 1438 } 1434 1439 if ($astman) { 1440 $cw = $astman->database_get("CW",$extension); 1441 $results['callwaiting'] = (trim($cw) == 'ENABLED') ? 'enabled' : 'disabled'; 1435 1442 $results['vmx_state']=$astman->database_get("AMPUSER",$extension."/vmx/unavail/state"); 1436 1443 $cid_masquerade=$astman->database_get("AMPUSER",$extension."/cidnum"); … … 2623 2630 $currentcomponent->setoptlistopts('privyn', 'sort', false); 2624 2631 2632 $currentcomponent->addoptlistitem('callwaiting', 'enabled', 'Enable'); 2633 $currentcomponent->addoptlistitem('callwaiting', 'disabled', 'Disable'); 2634 $currentcomponent->setoptlistopts('callwaiting', 'sort', false); 2635 2625 2636 $currentcomponent->addoptlistitem('ringtime', '0', 'Default'); 2626 2637 for ($i=1; $i <= 120; $i++) { … … 2749 2760 $ringtimer = (isset($ringtimer) ? $ringtimer : '0'); 2750 2761 $currentcomponent->addguielem($section, new gui_selectbox('ringtimer', $currentcomponent->getoptlist('ringtime'), $ringtimer, 'Ring Time', "Number of seconds to ring prior to going to voicemail. Default will use the value set in the General Tab. If no voicemail is configured this will be ignored.", false)); 2762 if (!isset($callwaiting)) { 2763 if ($amp_conf['ENABLECW']) { 2764 $callwaiting = 'enabled'; 2765 } else { 2766 $callwaiting = 'disabled'; 2767 } 2768 } 2769 $currentcomponent->addguielem($section, new gui_selectbox('callwaiting', $currentcomponent->getoptlist('callwaiting'), $callwaiting, 'Call Waiting', "Set the initial/current Call Waiting state for this user's extension", false)); 2751 2770 2752 2771 $section = 'Recording Options'; modules/branches/2.3/core/module.xml
r4325 r4326 4 4 <category>Basic</category> 5 5 <name>Core</name> 6 <version>2.3.0beta1. 8.1</version>6 <version>2.3.0beta1.9</version> 7 7 <candisable>no</candisable> 8 8 <changelog> 9 *2.3.0beta1.9* Added Call Waiting enable/disable on extensions settings, default for new is still set by ENABLECW 9 10 *2.3.0beta1.8.1* Added javascript validation to CID Prefix 10 11 *2.3.0beta1.8* Added CID Prefix Prepend feature to inbound DIDs
