[asterisk-bugs] [Asterisk 0015185]: [patch] Patch to allow tone-list as argument to ReadExten

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Dec 14 15:26:26 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15185 
====================================================================== 
Reported By:                jcovert
Assigned To:                qwell
====================================================================== 
Project:                    Asterisk
Issue ID:                   15185
Category:                   Applications/app_readexten
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     ready for testing
Target Version:             1.8
Asterisk Version:           SVN 
JIRA:                       SWP-413 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-05-22 10:32 CDT
Last Modified:              2009-12-14 15:26 CST
====================================================================== 
Summary:                    [patch] Patch to allow tone-list as argument to
ReadExten
Description: 
It is desirable to allow ReadExten to prompt with tones that are specific
to the use of ReadExten.  This patch allows support of tones (a) not in
indications.conf and/or (b) independent of the tone-zone.

With no flag, the "filename" argument causes ReadExten to play the file in
the background.

There is an "i" flag, which causes it to look the "filename" argument up
in indications.conf and play the tone sequence instead.

Current behaviour if the "indication" isn't found is to fall back to
trying to treat it as a filename (even though "i" is given).  That will
probably fail.

The attached patch allows a tone sequence to be specified instead of an
indication.  Effectively, if the "i" option is specified, the filename
argument is treated exactly like an argument to the "Playtones"
application.  Since the Playtones application accepts "|" as a separator,
even a multiple tone sequence may be specified.

example:

exten => s,n,ReadExten(exten,390+460/400|330+400,unrestricteddisa,i,20)

This plays 390+440 for 400 ms and then 330+400 from then on.
====================================================================== 

---------------------------------------------------------------------- 
 (0115227) qwell (administrator) - 2009-12-14 15:26
 https://issues.asterisk.org/view.php?id=15185#c115227 
---------------------------------------------------------------------- 
I'm about to commit something slightly different.

My method will fix the flaw you suggested might exist, and maintain
backwards compatibility. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-12-14 15:26 qwell          Note Added: 0115227                          
======================================================================




More information about the asterisk-bugs mailing list