Changeset 6557
- Timestamp:
- 09/04/08 07:12:30 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.5/asteriskinfo/page.asteriskinfo.php
r5919 r6557 237 237 function getPeer($peer, $channelType = NULL){ 238 238 global $astver_major, $astver_minor; 239 global $astver; 239 240 if(count($peer) > 1){ 240 241 if($channelType == NULL || $channelType == 'SIP'){ … … 245 246 $sipPeerInfo_arr2 = explode('[',$sipPeerInfo_string); 246 247 $sipPeerInfo_arr3 = explode(' ',$sipPeerInfo_arr2[1]); 247 if ($astver_major == 1 && $astver_minor >= 4){248 if (version_compare($astver, '1.4', 'ge')) { 248 249 $sipPeerInfo_arr['online'] = $sipPeerInfo_arr3[1] + $sipPeerInfo_arr3[6]; 249 250 $sipPeerInfo_arr['offline'] = $sipPeerInfo_arr3[3] + $sipPeerInfo_arr3[8];
