This patch adds support for controlling a playback operation from the
authorDavid M. Lee <dlee@digium.com>
Thu, 23 May 2013 20:21:16 +0000 (20:21 +0000)
committerDavid M. Lee <dlee@digium.com>
Thu, 23 May 2013 20:21:16 +0000 (20:21 +0000)
commit557125664da831cd332b6bab9d3da219fd484c63
treec414cdca4ab023c7b00a7dcaf90f7205092c60bc
parent10ba6bf8a8114278ca974861ecebcb3a827d8d5b
This patch adds support for controlling a playback operation from the
Asterisk REST interface.

This adds the /playback/{playbackId}/control resource, which may be
POSTed to to pause, unpause, reverse, forward or restart the media
playback.

Attempts to control a playback that is not currently playing will
either return a 404 Not Found (because the playback object no longer
exists) or a 409 Conflict (because the playback object is still in the
queue to be played).

This patch also adds skipms and offsetms parameters to the
/channels/{channelId}/play resource.

(closes issue ASTERISK-21587)
Review: https://reviewboard.asterisk.org/r/2559

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@389603 65c4cc65-6c06-0410-ace0-fbb531ad65f3
13 files changed:
include/asterisk/app.h
include/asterisk/channel.h
include/asterisk/stasis_app.h
include/asterisk/stasis_app_playback.h
main/app.c
res/res_stasis_http_channels.c
res/res_stasis_playback.c
res/stasis/control.c
res/stasis_http/resource_channels.c
res/stasis_http/resource_channels.h
res/stasis_http/resource_playback.c
rest-api/api-docs/channels.json
rest-api/api-docs/playback.json