2 "_copyright": "Copyright (C) 2012 - 2013, Digium, Inc.",
3 "_author": "David M. Lee, II <dlee@digium.com>",
4 "_svn_revision": "$Revision$",
6 "swaggerVersion": "1.1",
7 "basePath": "http://localhost:8088/stasis",
8 "resourcePath": "/api-docs/bridges.{format}",
12 "description": "Active bridges",
16 "summary": "List all active bridges in Asterisk.",
18 "responseClass": "List[Bridge]"
22 "summary": "Create a new bridge.",
23 "notes": "This bridge persists until it has been shut down, or Asterisk has been shut down.",
25 "responseClass": "Bridge",
29 "description": "Type of bridge to create.",
32 "allowMultiple": false,
47 "path": "/bridges/{bridgeId}",
48 "description": "Individual bridge",
52 "summary": "Get bridge details.",
54 "responseClass": "Bridge",
58 "description": "Bridge's id",
61 "allowMultiple": false,
68 "reason": "Bridge not found"
73 "httpMethod": "DELETE",
74 "summary": "Shut down a bridge.",
75 "notes": "If any channels are in this bridge, they will be removed and resume whatever they were doing beforehand.",
76 "nickname": "destroy",
77 "responseClass": "void",
81 "description": "Bridge's id",
84 "allowMultiple": false,
91 "reason": "Bridge not found"
98 "path": "/bridges/{bridgeId}/addChannel",
99 "description": "Add a channel to a bridge",
102 "httpMethod": "POST",
103 "summary": "Add a channel to a bridge.",
104 "nickname": "addChannel",
105 "responseClass": "void",
109 "description": "Bridge's id",
112 "allowMultiple": false,
117 "description": "Ids of channels to add to bridge",
118 "paramType": "query",
120 "allowMultiple": true,
125 "description": "Channel's role in the bridge",
126 "paramType": "query",
128 "allowMultiple": false,
135 "reason": "Channel not found"
139 "reason": "Bridge not found"
143 "reason": "Bridge not in Stasis application; Channel currently recording"
147 "reason": "Channel not in Stasis application"
154 "path": "/bridges/{bridgeId}/removeChannel",
155 "description": "Remove a channel from a bridge",
158 "httpMethod": "POST",
159 "summary": "Remove a channel from a bridge.",
160 "nickname": "removeChannel",
161 "responseClass": "void",
165 "description": "Bridge's id",
168 "allowMultiple": false,
173 "description": "Ids of channels to remove from bridge",
174 "paramType": "query",
176 "allowMultiple": true,
183 "reason": "Channel not found"
187 "reason": "Bridge not found"
191 "reason": "Bridge not in Stasis application"
195 "reason": "Channel not in this bridge"
202 "path": "/bridges/{bridgeId}/moh",
203 "description": "Play music on hold to a bridge",
206 "httpMethod": "POST",
207 "summary": "Play music on hold to a bridge or change the MOH class that is playing.",
208 "nickname": "startMoh",
209 "responseClass": "void",
213 "description": "Bridge's id",
216 "allowMultiple": false,
221 "description": "Channel's id",
222 "paramType": "query",
224 "allowMultiple": false,
231 "reason": "Bridge not found"
235 "reason": "Bridge not in Stasis application"
240 "httpMethod": "DELETE",
241 "summary": "Stop playing music on hold to a bridge.",
242 "notes": "This will only stop music on hold being played via POST bridges/{bridgeId}/moh.",
243 "nickname": "stopMoh",
244 "responseClass": "void",
248 "description": "Bridge's id",
251 "allowMultiple": false,
258 "reason": "Bridge not found"
262 "reason": "Bridge not in Stasis application"
269 "path": "/bridges/{bridgeId}/play",
270 "description": "Play media to the participants of a bridge",
273 "httpMethod": "POST",
274 "summary": "Start playback of media on a bridge.",
275 "notes": "The media URI may be any of a number of URI's. Currently sound: and recording: URI's are supported. This operation creates a playback resource that can be used to control the playback of media (pause, rewind, fast forward, etc.)",
277 "responseClass": "Playback",
281 "description": "Bridge's id",
284 "allowMultiple": false,
289 "description": "Media's URI to play.",
290 "paramType": "query",
292 "allowMultiple": false,
297 "description": "For sounds, selects language for sound.",
298 "paramType": "query",
300 "allowMultiple": false,
305 "description": "Number of media to skip before playing.",
306 "paramType": "query",
308 "allowMultiple": false,
312 "valueType": "RANGE",
319 "description": "Number of milliseconds to skip for forward/reverse operations.",
320 "paramType": "query",
322 "allowMultiple": false,
324 "defaultValue": 3000,
326 "valueType": "RANGE",
335 "reason": "Bridge not found"
339 "reason": "Bridge not in a Stasis application"
346 "path": "/bridges/{bridgeId}/record",
347 "description": "Record audio on a bridge",
350 "httpMethod": "POST",
351 "summary": "Start a recording.",
352 "notes": "This records the mixed audio from all channels participating in this bridge.",
353 "nickname": "record",
354 "responseClass": "LiveRecording",
358 "description": "Bridge's id",
361 "allowMultiple": false,
366 "description": "Recording's filename",
367 "paramType": "query",
369 "allowMultiple": false,
374 "description": "Format to encode audio in",
375 "paramType": "query",
377 "allowMultiple": false,
381 "name": "maxDurationSeconds",
382 "description": "Maximum duration of the recording, in seconds. 0 for no limit.",
383 "paramType": "query",
385 "allowMultiple": false,
389 "valueType": "RANGE",
394 "name": "maxSilenceSeconds",
395 "description": "Maximum duration of silence, in seconds. 0 for no limit.",
396 "paramType": "query",
398 "allowMultiple": false,
402 "valueType": "RANGE",
408 "description": "Action to take if a recording with the same name already exists.",
409 "paramType": "query",
411 "allowMultiple": false,
412 "dataType": "string",
413 "defaultValue": "fail",
425 "description": "Play beep when recording begins",
426 "paramType": "query",
428 "allowMultiple": false,
429 "dataType": "boolean",
430 "defaultValue": false
433 "name": "terminateOn",
434 "description": "DTMF input to terminate recording.",
435 "paramType": "query",
437 "allowMultiple": false,
438 "dataType": "string",
439 "defaultValue": "none",
454 "reason": "Invalid parameters"
458 "reason": "Bridge not found"
462 "reason": "Bridge is not in a Stasis application; A recording with the same name already exists on the system and can not be overwritten because it is in progress or ifExists=fail"
466 "reason": "The format specified is unknown on this system"
476 "description": "The merging of media from one or more channels.\n\nEveryone on the bridge receives the same audio.",
480 "description": "Unique identifier for this bridge",
485 "description": "Name of the current bridging technology",
490 "description": "Type of bridge technology",
502 "description": "Bridging class",
506 "type": "List[string]",
507 "description": "Ids of channels participating in this bridge",