Changeset 6557

Show
Ignore:
Timestamp:
09/04/08 07:12:30 (3 months ago)
Author:
p_lindheimer
Message:

fixes #3157 sip info summary display wrong

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.5/asteriskinfo/page.asteriskinfo.php

    r5919 r6557  
    237237function getPeer($peer, $channelType = NULL){ 
    238238        global $astver_major, $astver_minor; 
     239        global $astver; 
    239240        if(count($peer) > 1){    
    240241                if($channelType == NULL || $channelType == 'SIP'){ 
     
    245246                        $sipPeerInfo_arr2 = explode('[',$sipPeerInfo_string); 
    246247                        $sipPeerInfo_arr3 = explode(' ',$sipPeerInfo_arr2[1]); 
    247                         if($astver_major == 1 && $astver_minor >= 4){ 
     248                        if (version_compare($astver, '1.4', 'ge')) {  
    248249                                $sipPeerInfo_arr['online'] = $sipPeerInfo_arr3[1] + $sipPeerInfo_arr3[6]; 
    249250                                $sipPeerInfo_arr['offline'] = $sipPeerInfo_arr3[3] + $sipPeerInfo_arr3[8]; 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads