Changeset 4618
- Timestamp:
- 07/29/07 17:00:57 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.3/amp_conf/htdocs/admin/functions.inc.php
r4613 r4618 608 608 case 'asterisk': 609 609 if (isset($astman) && $astman->connected()) { 610 //get version 611 $response = $astman->send_request('Command', array('Command'=>'show version')); 610 //get version (1.4) 611 $response = $astman->send_request('Command', array('Command'=>'core show version')); 612 if (preg_match('/No such command/',$response['data'])) { 613 // get version (1.2) 614 $response = $astman->send_request('Command', array('Command'=>'show version')); 615 } 612 616 $verinfo = $response['data']; 613 617 } else {
