[asterisk-bugs] [Asterisk 0011377]: added a return variable to app_controlplayback that reports the key used to stop playback.

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Nov 27 07:20:58 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11377 
====================================================================== 
Reported By:                johan
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11377
Category:                   Applications/app_controlplayback
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     new
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 89566 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             11-26-2007 09:08 CST
Last Modified:              11-27-2007 07:20 CST
====================================================================== 
Summary:                    added a return variable to app_controlplayback that
reports the key used to stop playback.
Description: 
Previously there have been patches to app_controlplayback that added
features like multiple skip speeds on different buttons. This patch will
allow these features to be designed in the users dialplan insted.

When the user stops the playback with one of his stop keys the variable
CPLAYBACKSTOPKEY is set to indicate which key was used.

By calling app_controlplayback with
ControlPlayback(ss-noservice,,,,0123456789*#) as an extreme example you can
do all handling of skipping in the dialplan.
====================================================================== 

---------------------------------------------------------------------- 
 johan - 11-27-07 07:20  
---------------------------------------------------------------------- 
Also, the usage of this isn't limited to different skip speeds. For example
I use * (star) to read the instructions how to use the key pad. Because
both the stop key and position in the file is reported to the dialplan it
is easy to start playing the recoring again after the instruction has been
played.

At first this patch were written for 1.4 and I've used it in 2-3 months in
production (together with the patch that provided the o-option and reported
the position) I could provide this patch as well however. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-27-07 07:20  johan          Note Added: 0074408                          
======================================================================




More information about the asterisk-bugs mailing list