Ticket #1520: freepbx-core-show-version.diff
| File freepbx-core-show-version.diff, 0.6 kB (added by julianjm, 2 years ago) |
|---|
-
functions.inc.php
old new 183 183 if ($astman) { 184 184 //get version 185 185 $response = $astman->send_request('Command', array('Command'=>'show version')); 186 if (preg_match('/No such command/',$response['data'])) { 187 $response = $astman->send_request('Command', array('Command'=>'core show version')); 188 } 186 189 $verinfo = $response['data']; 187 190 } else { 188 191 // could not connect to asterisk manager
