From f0d9452511a30ba21b6f691df013c7ebf878850b Mon Sep 17 00:00:00 2001 From: neovoice <43648578+neovoice@users.noreply.github.com> Date: Fri, 12 Mar 2021 10:48:05 -0500 Subject: [PATCH] Update phpagi-asmanager.php Added Action CoreShowChannels. --- src/phpagi-asmanager.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/phpagi-asmanager.php b/src/phpagi-asmanager.php index e2e7c2f..535bf89 100644 --- a/src/phpagi-asmanager.php +++ b/src/phpagi-asmanager.php @@ -412,6 +412,20 @@ function Command($command, $actionid=null) if($actionid) $parameters['ActionID'] = $actionid; return $this->send_request('Command', $parameters); } + + /** + * Core Show Channels + * + * @link https://www.voip-info.org/asterisk-manager-api/#ManagerActions + * @param string $actionid message matching variable + */ + function CoreShowChannels($actionid=NULL) + { + if($actionid) + return $this->send_request('CoreShowChannels', array('ActionID'=>$actionid)); + else + return $this->send_request('CoreShowChannels'); + } /** * Enable/Disable sending of events to this manager