@@ 119-127 (lines=9) @@ | ||
116 | * @param string $bridgeId Bridge's id |
|
117 | * @throws NotFoundException |
|
118 | */ |
|
119 | public function deleteBridge($bridgeId) |
|
120 | { |
|
121 | $uri = "/bridges/$bridgeId"; |
|
122 | try { |
|
123 | $this->client->getEndpoint()->delete($uri); |
|
124 | } catch (Pest_NotFound $e) { |
|
125 | throw new NotFoundException($e); |
|
126 | } |
|
127 | } |
|
128 | ||
129 | /** |
|
130 | * Add a channel to a bridge. |
@@ 98-106 (lines=9) @@ | ||
95 | * @param string $mailboxName Name of the mailbox |
|
96 | * @throws NotFoundException |
|
97 | */ |
|
98 | public function deleteMailbox($mailboxName) |
|
99 | { |
|
100 | $uri = "/mailboxes/$mailboxName"; |
|
101 | try { |
|
102 | $this->client->getEndpoint()->delete($uri); |
|
103 | } catch (Pest_NotFound $e) { // Mailbox not found |
|
104 | throw new NotFoundException($e); |
|
105 | } |
|
106 | } |
|
107 | ||
108 | } |
|
109 |
@@ 68-76 (lines=9) @@ | ||
65 | * @param string $playbackId Playback's id |
|
66 | * @throws NotFoundException |
|
67 | */ |
|
68 | public function stopPlayback($playbackId) |
|
69 | { |
|
70 | $uri = "/playbacks/$playbackId"; |
|
71 | try { |
|
72 | $this->client->getEndpoint()->delete($uri); |
|
73 | } catch (Pest_NotFound $e) { // Playback not found |
|
74 | throw new NotFoundException($e); |
|
75 | } |
|
76 | } |
|
77 | ||
78 | /** |
|
79 | * Control a playback. |
@@ 80-88 (lines=9) @@ | ||
77 | * @return StoredRecording |
|
78 | * @throws NotFoundException |
|
79 | */ |
|
80 | public function deleteRecording($recordingName) |
|
81 | { |
|
82 | $uri = "/recordings/stored/$recordingName"; |
|
83 | try { |
|
84 | $this->client->getEndpoint()->delete($uri); |
|
85 | } catch (Pest_NotFound $e) { // Playback not found |
|
86 | throw new NotFoundException($e); |
|
87 | } |
|
88 | } |
|
89 | ||
90 | /** |
|
91 | * Copy a stored recording. |
|
@@ 140-148 (lines=9) @@ | ||
137 | * @param string $recordingName The name of the recording |
|
138 | * @throws NotFoundException |
|
139 | */ |
|
140 | public function deleteLiveRecording($recordingName) |
|
141 | { |
|
142 | $uri = "/recordings/live/$recordingName"; |
|
143 | try { |
|
144 | $this->client->getEndpoint()->delete($uri); |
|
145 | } catch (Pest_NotFound $e) { // Playback not found |
|
146 | throw new NotFoundException($e); |
|
147 | } |
|
148 | } |
|
149 | ||
150 | /** |
|
151 | * Stop a live recording and store it. |
|
@@ 156-164 (lines=9) @@ | ||
153 | * @param string $recordingName The name of the recording |
|
154 | * @throws NotFoundException |
|
155 | */ |
|
156 | public function stopLiveRecording($recordingName) |
|
157 | { |
|
158 | $uri = "/recordings/live/$recordingName/stop"; |
|
159 | try { |
|
160 | $this->client->getEndpoint()->post($uri, array()); |
|
161 | } catch (Pest_NotFound $e) { // Playback not found |
|
162 | throw new NotFoundException($e); |
|
163 | } |
|
164 | } |
|
165 | ||
166 | /** |
|
167 | * Pause a live recording. Pausing a recording suspends silence detection, which will be restarted |
@@ 211-219 (lines=9) @@ | ||
208 | * @param string $channelId Channel's id |
|
209 | * @throws NotFoundException |
|
210 | */ |
|
211 | public function deleteChannel($channelId) |
|
212 | { |
|
213 | $uri = "/channels/$channelId"; |
|
214 | try { |
|
215 | $this->client->getEndpoint()->delete($uri); |
|
216 | } catch (Pest_NotFound $e) { |
|
217 | throw new NotFoundException($e); |
|
218 | } |
|
219 | } |
|
220 | ||
221 | /** |
|
222 | * Hangup a channel if it still exists. |