@@ 63-73 (lines=11) @@ | ||
60 | * @param string $name Name to give to the bridge being created. |
|
61 | * @return Bridge |
|
62 | */ |
|
63 | public function createBridge($bridgeId, $type, $name) |
|
64 | { |
|
65 | $uri = '/bridges'; |
|
66 | $response = $this->client->getEndpoint()->post($uri, array( |
|
67 | 'bridgeId' => $bridgeId, |
|
68 | 'type' => $type, |
|
69 | 'name' => $name, |
|
70 | )); |
|
71 | ||
72 | return new Bridge($this->client, $response); |
|
73 | } |
|
74 | ||
75 | /** |
|
76 | * Create a new bridge or updates an existing one. This bridge persists until it has been shut down, or Asterisk has been shut down. |
|
@@ 83-92 (lines=10) @@ | ||
80 | * @param string $name Set the name of the bridge. |
|
81 | * @return Bridge |
|
82 | */ |
|
83 | public function updateBridge($bridgeId, $type, $name) |
|
84 | { |
|
85 | $uri = "/bridges/$bridgeId"; |
|
86 | $response = $this->client->getEndpoint()->post($uri, array( |
|
87 | 'type' => $type, |
|
88 | 'name' => $name, |
|
89 | )); |
|
90 | ||
91 | return new Bridge($this->client, $response); |
|
92 | } |
|
93 | ||
94 | /** |
|
95 | * Get bridge details. |