[asterisk-dev] [Code Review] 2559: Implement playback controls for Stasis-HTTP
David Lee
reviewboard at asterisk.org
Thu May 23 15:28:14 CDT 2013
> On May 23, 2013, 1:52 p.m., Matt Jordan wrote:
> > /team/dlee/playback-rebase/res/res_stasis_http_channels.c, lines 333-338
> > <https://reviewboard.asterisk.org/r/2559/diff/1/?file=38459#file38459line333>
> >
> > This is minor, but if possible we should use sscanf here
This comes from the code generator, which would take a bit of work to get to use sscanf here. That can be done as a different patch.
- David
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2559/#review8705
-----------------------------------------------------------
On May 23, 2013, 3:21 p.m., David Lee wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/2559/
> -----------------------------------------------------------
>
> (Updated May 23, 2013, 3:21 p.m.)
>
>
> Review request for Asterisk Developers.
>
>
> Bugs: ASTERISK-21587
> https://issues.asterisk.org/jira/browse/ASTERISK-21587
>
>
> Repository: Asterisk
>
>
> Description
> -------
>
> 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
>
>
> Diffs
> -----
>
> /team/dlee/playback-rebase/include/asterisk/app.h 389484
> /team/dlee/playback-rebase/include/asterisk/channel.h 389484
> /team/dlee/playback-rebase/include/asterisk/stasis_app.h 389484
> /team/dlee/playback-rebase/include/asterisk/stasis_app_playback.h 389484
> /team/dlee/playback-rebase/main/app.c 389484
> /team/dlee/playback-rebase/res/res_stasis_http_channels.c 389484
> /team/dlee/playback-rebase/res/res_stasis_playback.c 389484
> /team/dlee/playback-rebase/res/stasis/control.c 389484
> /team/dlee/playback-rebase/res/stasis_http/resource_channels.h 389484
> /team/dlee/playback-rebase/res/stasis_http/resource_channels.c 389484
> /team/dlee/playback-rebase/res/stasis_http/resource_playback.c 389484
> /team/dlee/playback-rebase/rest-api/api-docs/channels.json 389484
> /team/dlee/playback-rebase/rest-api/api-docs/playback.json 389484
>
> Diff: https://reviewboard.asterisk.org/r/2559/diff/
>
>
> Testing
> -------
>
> Used swagger-ui to poke the playback control resource.
>
>
> Thanks,
>
> David Lee
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20130523/bdcc0b67/attachment-0001.htm>
More information about the asterisk-dev
mailing list