public function getChannels()
    {
        $uri = 'channels';
        $response = $this->client->getEndpoint()->get($uri);

        $channels = [];
        foreach (\GuzzleHttp\json_decode($response->getBody()) as $channel) {
            $channels[] = new Channel($this->client, $channel);
        }

        return $channels;
    }
public function getChannels()
    {
        $uri = 'channels';
        $response = $this->client->getEndpoint()->get($uri);

        $channels = [];
        foreach (\GuzzleHttp\json_decode($response->getBody()) as $channel) {
            $channels[] = new Channel($this->client, $channel);
        }

        return $channels;
    }
public function getChannels ( ) { $ uri = 'channels' ; $ response = $ this -> client -> getEndpoint ( ) -> get ( $ uri ) ; $ channels = [ ] ; foreach ( \ GuzzleHttp \ json_decode ( $ response -> getBody ( ) ) as $ channel ) { $ channels [ ] = new Channel ( $ this -> client , $ channel ) ; } return $ channels ; }
List all active channels in Asterisk.

@return Channel[]
List all active channels in Asterisk .