| @@ 73-81 (lines=9) @@ | ||
| 70 | * @throws NotFoundException |
|
| 71 | * @throws ConflictException |
|
| 72 | */ |
|
| 73 | public function stopMusicOnHold($id) |
|
| 74 | { |
|
| 75 | $uri = "{$this->getType()}/$id/moh"; |
|
| 76 | try { |
|
| 77 | $this->client->getEndpoint()->delete($uri); |
|
| 78 | } catch (RequestException $e) { |
|
| 79 | $this->processRequestException($e); |
|
| 80 | } |
|
| 81 | } |
|
| 82 | ||
| 83 | /** |
|
| 84 | * Start playback of media. The media URI may be any of a number of URI's. Currently sound:, |
|
| @@ 373-381 (lines=9) @@ | ||
| 370 | * @throws NotFoundException |
|
| 371 | * @throws ConflictException |
|
| 372 | */ |
|
| 373 | public function unmute($channelId, $direction) |
|
| 374 | { |
|
| 375 | $uri = "channels/$channelId/mute?direction=".\GuzzleHttp\json_encode($direction); |
|
| 376 | try { |
|
| 377 | $this->client->getEndpoint()->delete($uri); |
|
| 378 | } catch (RequestException $e) { |
|
| 379 | $this->processRequestException($e); |
|
| 380 | } |
|
| 381 | } |
|
| 382 | ||
| 383 | /** |
|
| 384 | * Hold a channel. |
|