Changeset 3938
- Timestamp:
- 04/25/07 11:05:24 (6 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.2/amp_conf/htdocs/admin/functions.inc.php
r3933 r3938 183 183 switch ($amp_conf['AMPENGINE']) { 184 184 case 'asterisk': 185 if ( $astman) {185 if (isset($astman)) { 186 186 //get version 187 187 $response = $astman->send_request('Command', array('Command'=>'show version')); 188 188 $verinfo = $response['data']; 189 189 } else { 190 // could not connect to asterisk manager 191 return array('engine'=>'ERROR-UNABLE-TO-CONNECT', 'version'=>'0', 'additional' => '0');190 // could not connect to asterisk manager, try console 191 $verinfo = exec('asterisk -V'); 192 192 } 193 193 … … 198 198 return array('engine'=>'asterisk', 'version' => $matches[1], 'additional' => $matches[4]); 199 199 } 200 201 // could not connect to asterisk manager 202 return array('engine'=>'ERROR-UNABLE-TO-CONNECT', 'version'=>'0', 'additional' => '0'); 200 203 break; 201 204 }
