Changeset 6558
- Timestamp:
- 09/04/08 07:16:46 (3 months ago)
- Files:
-
- modules/branches/2.4 (modified) (1 prop)
- modules/branches/2.4/asteriskinfo/module.xml (modified) (2 diffs)
- modules/branches/2.4/asteriskinfo/page.asteriskinfo.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.4
- Property svnmerge-integrated changed from /modules/branches/2.3:1-5233,5245,5333,5336 /modules/branches/2.5:1-5852,5880,5930,5995,6016-6017,6030-6031,6142,6218,6291,6361,6363,6413-6414,6422,6428-6430,6442-6443 to /modules/branches/2.3:1-5233,5245,5333,5336 /modules/branches/2.5:1-5852,5880,5930,5995,6016-6017,6030-6031,6142,6218,6291,6361,6363,6413-6414,6422,6428-6430,6442-6443,6557
modules/branches/2.4/asteriskinfo/module.xml
r5787 r6558 2 2 <rawname>asteriskinfo</rawname> 3 3 <name>Asterisk Info</name> 4 <version>2.4.0. 1</version>4 <version>2.4.0.2</version> 5 5 <type>tool</type> 6 6 <category>System Administration</category> … … 15 15 </depends> 16 16 <changelog> 17 *2.4.0.2* #3157 fixes Sip Peers Summary 17 18 *2.4.0.1* #2704 Asterisk 1.6 tweaks 18 19 *2.4.0* bumped to 2.4 modules/branches/2.4/asteriskinfo/page.asteriskinfo.php
r5721 r6558 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];
