[asterisk-dev] [Code Review] 2916: ARI: Add early media playback, DTMF, and indications

Paul Belanger reviewboard at asterisk.org
Wed Oct 16 13:34:55 CDT 2013



> On Oct. 16, 2013, 6:05 p.m., Paul Belanger wrote:
> > /branches/12/rest-api/api-docs/channels.json, lines 709-715
> > <https://reviewboard.asterisk.org/r/2916/diff/1/?file=47112#file47112line709>
> >
> >     So, I'm conflicted with this options.  While I understand the need for early media, I believe this might actually belong in the application, and not ARI.
> >     
> >     Since we have /answer and /playback respectively, a combination of both could be used from the application POV to achieve early media.  If not, that's how I'd like to see it.
> >     
> >     Adding additional flags to function to control other function seems like a rabbit hole for a slew of different scenerios in ARI.
> 
> Joshua Colp wrote:
>     Yes, if the behavior of playback is such that it does not explicitly answer then you can achieve this behavior BUT the developer has to be aware of early media and understand it. That's why I added this as an option (which defaults to answering) instead of just removing the explicit code. I've seen it before with dialplan applications, people don't understand they need to answer. If we are fine with that... then so be it!

I think this is a reasonable things to expect from an ARI developer, especially if we document how early media works.  Again, I don't want to see ARI trying to handle every scenarios possible, simple expose the functions to do it and teach the programmers how to do it.


- Paul


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2916/#review9923
-----------------------------------------------------------


On Oct. 16, 2013, 3:41 p.m., Joshua Colp wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/2916/
> -----------------------------------------------------------
> 
> (Updated Oct. 16, 2013, 3:41 p.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Bugs: ASTERISK-22701
>     https://issues.asterisk.org/jira/browse/ASTERISK-22701
> 
> 
> Repository: Asterisk
> 
> 
> Description
> -------
> 
> The attached patch adds some additional useful functionality:
> 
> 1. It is now possible to disable explicit answering when doing a playback, which can be used for early media.
> 
> 2. DTMF can now be posted to a channel which sends the DTMF to it.
> 
> 3. Indications can now be posted to a channel.
> 
> 
> Diffs
> -----
> 
>   /branches/12/include/asterisk/stasis_app.h 400957 
>   /branches/12/include/asterisk/stasis_app_playback.h 400957 
>   /branches/12/res/ari/resource_bridges.c 400957 
>   /branches/12/res/ari/resource_channels.h 400957 
>   /branches/12/res/ari/resource_channels.c 400957 
>   /branches/12/res/res_ari_channels.c 400957 
>   /branches/12/res/res_stasis_playback.c 400957 
>   /branches/12/res/stasis/control.c 400957 
>   /branches/12/rest-api/api-docs/channels.json 400957 
> 
> Diff: https://reviewboard.asterisk.org/r/2916/diff/
> 
> 
> Testing
> -------
> 
> Tested invoking everything as expected, plus off nominals (missing values, incorrect values).
> 
> 
> Thanks,
> 
> Joshua Colp
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20131016/bd0cb359/attachment.html>


More information about the asterisk-dev mailing list