public function createBridge($bridgeId, $type, $name)
    {
        $uri = 'bridges';
        $response = $this->client->getEndpoint()->post($uri, [
            'form_params' => [
                'bridgeId' => $bridgeId,
                'type' => $type,
                'name' => $name,
            ]
        ]);

        return new Bridge($this->client, \GuzzleHttp\json_decode($response->getBody()));
    }
public function createBridge($bridgeId, $type, $name)
    {
        $uri = 'bridges';
        $response = $this->client->getEndpoint()->post($uri, [
            'form_params' => [
                'bridgeId' => $bridgeId,
                'type' => $type,
                'name' => $name,
            ]
        ]);

        return new Bridge($this->client, \GuzzleHttp\json_decode($response->getBody()));
    }
public function createBridge ( $ bridgeId , $ type , $ name ) { $ uri = 'bridges' ; $ response = $ this -> client -> getEndpoint ( ) -> post ( $ uri , [ 'form_params' => [ 'bridgeId' => $ bridgeId , 'type' => $ type , 'name' => $ name , ] ] ) ; return new Bridge ( $ this -> client , \ GuzzleHttp \ json_decode ( $ response -> getBody ( ) ) ) ; }
Create a new bridge. This bridge persists until it has been shut down, or Asterisk has been shut down.

@param string $bridgeId Unique ID to give to the bridge being created.
@param string $type Comma separated list of bridge type attributes (mixing, holding, dtmf_events, proxy_media).
@param string $name Name to give to the bridge being created.
@return Bridge
Create a new bridge . This bridge persists until it has been shut down or Asterisk has been shut down .