Changeset 4618

Show
Ignore:
Timestamp:
07/29/07 17:00:57 (1 year ago)
Author:
gregmac
Message:

Implement #1520

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.3/amp_conf/htdocs/admin/functions.inc.php

    r4613 r4618  
    608608                case 'asterisk': 
    609609                        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                                } 
    612616                                $verinfo = $response['data']; 
    613617                        } else { 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads