Changeset 1052

Show
Ignore:
Timestamp:
09/18/08 08:35:16 (4 months ago)
Author:
areski
Message:

UPDATE AsteriskInfo?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/admin/Public/A2B_asteriskinfo.php

    r1051 r1052  
    108108); 
    109109 
    110 //$engineinfo = engine_getinfo(); 
    111 //$astver =  $engineinfo['version']; 
    112  
    113 //if (version_compare($astver, '1.4', 'ge')) { 
     110 
     111if (ASTERISK_VERSION == '1_4') { 
    114112        $arr_all["Uptime"]="core show uptime"; 
    115113        $arr_all["Active Channel(s)"]="core show channels"; 
     
    119117        $arr_subscriptions["Subscribe/Notify"]="core show hints"; 
    120118        $arr_voicemail["Voicemail users"]="voicemail show users"; 
    121 //
     119
    122120 
    123121?> 
     
    321319        ); 
    322320         
    323         //if (version_compare($astver, '1.4', 'ge')) { 
     321        if (ASTERISK_VERSION == '1_4') { 
    324322                $arr['Uptime'] = 'core show uptime'; 
    325         //
     323       
    326324         
    327325        $htmlOutput = '<div style="color:#000000;font-size:12px;margin:10px;">'; 
  • trunk/common/lib/admin.defines.php

    r1021 r1052  
    122122define ("USE_REALTIME", isset($A2B->config['peer_friend']['use_realtime'])?$A2B->config['peer_friend']['use_realtime']:0); 
    123123 
    124  
     124// AGI 
     125define ("ASTERISK_VERSION", isset($A2B->config['agi-conf1']['asterisk_version'])?$A2B->config['agi-conf1']['asterisk_version']:'1_4'); 
    125126 
    126127 


Google