Changeset 4326

Show
Ignore:
Timestamp:
07/07/07 10:11:24 (2 years ago)
Author:
p_lindheimer
Message:

Added Call Waiting enable/disable on extensions settings, default for new is still set by ENABLECW

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.3/core/functions.inc.php

    r4320 r4326  
    13601360                $astman->database_put("AMPUSER",$extension."/voicemail","\"".isset($voicemail)?$voicemail:''."\""); 
    13611361                $astman->database_put("AMPUSER",$extension."/device","\"".isset($device)?$device:''."\""); 
    1362                 if ($amp_conf['ENABLECW']) { 
     1362 
     1363                if (trim($callwaiting) == 'enabled') { 
    13631364                        $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>"; 
    13641369                } 
    13651370 
     
    14331438        } 
    14341439        if ($astman) { 
     1440                $cw = $astman->database_get("CW",$extension); 
     1441                $results['callwaiting'] = (trim($cw) == 'ENABLED') ? 'enabled' : 'disabled'; 
    14351442                $results['vmx_state']=$astman->database_get("AMPUSER",$extension."/vmx/unavail/state"); 
    14361443                $cid_masquerade=$astman->database_get("AMPUSER",$extension."/cidnum"); 
     
    26232630                $currentcomponent->setoptlistopts('privyn', 'sort', false); 
    26242631 
     2632                $currentcomponent->addoptlistitem('callwaiting', 'enabled', 'Enable'); 
     2633                $currentcomponent->addoptlistitem('callwaiting', 'disabled', 'Disable'); 
     2634                $currentcomponent->setoptlistopts('callwaiting', 'sort', false); 
     2635 
    26252636                $currentcomponent->addoptlistitem('ringtime', '0', 'Default'); 
    26262637                for ($i=1; $i <= 120; $i++) { 
     
    27492760                $ringtimer = (isset($ringtimer) ? $ringtimer : '0'); 
    27502761                $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)); 
    27512770 
    27522771                $section = 'Recording Options'; 
  • modules/branches/2.3/core/module.xml

    r4325 r4326  
    44        <category>Basic</category> 
    55        <name>Core</name> 
    6         <version>2.3.0beta1.8.1</version> 
     6        <version>2.3.0beta1.9</version> 
    77        <candisable>no</candisable> 
    88        <changelog> 
     9                *2.3.0beta1.9* Added Call Waiting enable/disable on extensions settings, default for new is still set by ENABLECW 
    910                *2.3.0beta1.8.1* Added javascript validation to CID Prefix 
    1011                *2.3.0beta1.8* Added CID Prefix Prepend feature to inbound DIDs