[asterisk-bugs] [Asterisk 0017487]: [patch] app_recordkey - new record application that returns key pressed

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jun 9 10:46:35 CDT 2010


The following issue NEEDS LICENSE. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17487 
====================================================================== 
Reported By:                cal
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17487
Category:                   Applications/NewFeature
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     needs license
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-06-08 12:27 CDT
Last Modified:              2010-06-09 10:46 CDT
====================================================================== 
Summary:                    [patch] app_recordkey - new record application that
returns key pressed
Description: 
I tweaked the app_record application such that it returns a key. Here is an
example of how I am using it:
; RecordKey stops on any digit rather than just #. It returns the digit as
in ${EXTEN}
exten => s,2,RecordKey(${newmsg}.${rectype},${silence},${msg_length}) 
exten => _X,1,Set(seccode=${EXTEN})
exten => _X,2,Read(secrest,,3)
exten => _X,3,Set(seccode=${seccode}${secrest})
exten => _X,4,AGI(ll-login.pl,${seccode})
exten => _X,5,Playback(ll-en-invalid)
exten => _X,6,Goto(lifeline,s,2)
exten => _X,100,Goto(geninstr,s,1)

The reason for this application is to make it easier for our voicemail
clients to enter their login information. The behavior matches that of our
old dialogic equipment.
====================================================================== 

---------------------------------------------------------------------- 
 (0123194) lmadsen (administrator) - 2010-06-09 10:46
 https://issues.asterisk.org/view.php?id=17487#c123194 
---------------------------------------------------------------------- 
Waiting on license acknowledgement.

However, I do not like the way this works as it is not intuitive.

I would prefer that this store the digits pressed like in the Read()
application. In fact it should probably would very much like the Read()
application, except that it records the file rather than playing it back.

I can see it working more like this:

exten =>
start,1,RecordKeys(variable_name,file.extension,silence,msg_length,...) 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-06-09 10:46 lmadsen        Note Added: 0123194                          
2010-06-09 10:46 lmadsen        Status                   new => needs license
======================================================================




More information about the asterisk-bugs mailing list