[asterisk-dev] [Code Review] 3427: ARI: Add tones playback resource

Jonathan Rose reviewboard at asterisk.org
Tue Apr 8 17:29:20 CDT 2014

This is an automatically generated e-mail. To reply, visit:

Review request for Asterisk Developers, David Lee, Joshua Colp, and Matt Jordan.

Bugs: ASTERISK-23433

Repository: Asterisk


Adds a tones URI type to the playback resource. The tone can be specified by name (from indications.conf) or by a tone pattern (comma separate pitch/duration list). Tones aren't like regular sounds in that they must be canceled manually before the control can move on to the next item in the queue.

Tones are capable of being paused and resumed (although they will always resumed from the beginning of the tone), restarted, and stopped.  Tones are not capable of being fastforwarded, skipped into by a duration, or rewound by a small amount. Those operations unfortunately report success rather than a lack of availability right now due to how control on playbacks is defined (a playback is either completely controllable or not). I could probably add a little more granularity to that if we want it.


  /trunk/res/res_stasis_playback.c 411884 
  /trunk/main/app.c 411884 
  /trunk/include/asterisk/app.h 411884 

Diff: https://reviewboard.asterisk.org/r/3427/diff/


I've written two testsuite tests (one for channels, one for bridges) which queue and stop tones with playback. I'll be posting them before too long.  I've also performed all the basic control operations by hand.


Jonathan Rose

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

More information about the asterisk-dev mailing list