Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Update to GIT-13-8778e22

Bridges

Method Path

Path<br>h5. Parameters are case-sensitive

Return Model

Summary

GET

/bridges

List[Bridge]

List all active bridges in Asterisk.

POST

/bridges

Bridge

Create a new bridge.

POST

/bridges/{bridgeId}

Bridge

Create a new bridge or updates an existing one.

GET

/bridges/{bridgeId}

Bridge

Get bridge details.

DELETE

/bridges/{bridgeId}

void

Shut down a bridge.

POST

/bridges/{bridgeId}/addChannel

void

Add a channel to a bridge.

POST

/bridges/{bridgeId}/removeChannel

void

Remove a channel from a bridge.

POST

/bridges/{bridgeId}/moh

void

Play music on hold to a bridge or change the MOH class that is playing.

DELETE

/bridges/{bridgeId}/moh

void

Stop playing music on hold to a bridge.

POST

/bridges/{bridgeId}/play

Playback

Start playback of media on a bridge.

POST

/bridges/{bridgeId}/play/{playbackId}

Playback

Start playback of media on a bridge.

POST

/bridges/{bridgeId}/record

LiveRecording

Start a recording.

...

Create a new bridge or updates an existing one. This bridge persists until it has been shut down, or Asterisk has been shut down.

Path parameters

Parameters are case-sensitive.

  • bridgeId: string - Unique ID to give to the bridge being created.

...

Get bridge details.

Path parameters

Parameters are case-sensitive.

  • bridgeId: string - Bridge's id

...

Shut down a bridge. If any channels are in this bridge, they will be removed and resume whatever they were doing beforehand.

Path parameters

Parameters are case-sensitive.

  • bridgeId: string - Bridge's id

...

Add a channel to a bridge.

Path parameters

Parameters are case-sensitive.

  • bridgeId: string - Bridge's id

...

Remove a channel from a bridge.

Path parameters

Parameters are case-sensitive.

  • bridgeId: string - Bridge's id

...

Play music on hold to a bridge or change the MOH class that is playing.

Path parameters

Parameters are case-sensitive.

  • bridgeId: string - Bridge's id

...

Stop playing music on hold to a bridge. This will only stop music on hold being played via POST bridges/{bridgeId}/moh.

Path parameters

Parameters are case-sensitive.

  • bridgeId: string - Bridge's id

...

Start playback of media on a bridge. The media URI may be any of a number of URI's. Currently sound:, recording:, number:, digits:, characters:, and tone: 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.)

Path parameters

Parameters are case-sensitive.

  • bridgeId: string - Bridge's id

...

Start playback of media on a bridge. The media URI may be any of a number of URI's. Currently sound:, recording:, number:, digits:, characters:, and tone: 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.)

Path parameters

Parameters are case-sensitive.

  • bridgeId: string - Bridge's id
  • playbackId: string - Playback ID.

...

Start a recording. This records the mixed audio from all channels participating in this bridge.

Path parameters

Parameters are case-sensitive.

  • bridgeId: string - Bridge's id

...