class Asterisk::ARI::Playbacks

Defined in:

asterisk/ari/resources/playbacks.cr
asterisk/ari/models/playbacks_playback.cr

Instance Method Summary

Instance methods inherited from class Asterisk::ARI::Resources

ari : ARI ari

Constructor methods inherited from class Asterisk::ARI::Resources

new(ari) new

Instance Method Detail

def control(playback_id : String, operation : String) #

Control a playback.

Arguments:

  • playback_id - playback's id. (required);
  • operation - operation to perform on the playback. (required);

Error responses:

  • 400 - The provided operation parameter was invalid
  • 404 - The playback cannot be found
  • 409 - The operation cannot be performed in the playback's current state

[View source]
def get(playback_id : String) : HTTP::Client::Response | Playbacks::Playback #

Get a playback's details.

Arguments:

  • playback_id - playback's id. (required);

Error responses:

  • 404 - The playback cannot be found

[View source]
def stop(playback_id : String) #

Stop a playback.

Arguments:

  • playback_id - playback's id. (required);

Error responses:

  • 404 - The playback cannot be found

[View source]