[asterisk-bugs] [JIRA] (ASTERISK-20782) Allow SayAlpha to announce "Uppercase <letter>" in a string.

Kevin Scott Adams (JIRA) noreply at issues.asterisk.org
Thu Jan 17 14:03:20 CST 2013


    [ https://issues.asterisk.org/jira/browse/ASTERISK-20782?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=201777#comment-201777 ] 

Kevin Scott Adams edited comment on ASTERISK-20782 at 1/17/13 2:01 PM:
-----------------------------------------------------------------------

Uploaded new patches that allows an option in the SayAlpha application.

SayAlpha(string[,casetype]);

A blank or 'i' in the option field 'casetype' will pronounce the 'string' using case Insensitive characters.

A 's' in the option field 'casetype' will pronounce the 'string' using case Sensitive characters.

Examples:
SayAlpha(aBc) will produce the announcement 'a' 'b' 'c'. - Default of the current SayAlpha application.

SayAlpha(ABc,i) will produce the announcement 'a' 'b' 'c'.

SayAlpha(AbC,s) will produce the announcement 'uppercase' 'a' 'b' 'uppercase' 'c'.

I made changed to the res_agi but did not test it yet.
Was looking at other application to get an idea of how it should be.
                
      was (Author: nivek):
    Uploaded new patches that allows a command line option in the SayAlpha application.
                  
> Allow SayAlpha to announce "Uppercase <letter>" in a string.
> ------------------------------------------------------------
>
>                 Key: ASTERISK-20782
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20782
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>          Components: Applications/NewFeature
>    Affects Versions: 1.8.15.0, Feature Tracker
>         Environment: CentOS 5.8 x86_64 running Asterisk 1.8.15
>            Reporter: Kevin Scott Adams
>            Severity: Trivial
>         Attachments: include-asterisk-say.h.patch, main-channel.c.patch, main-pbx.c.patch, main-say.c.patch, res-res_agi.c.patch, uppercase.tar.gz
>
>
> The application SayAlpha currently does not allow for the announcement of "Uppercase" letters in the string.
> The example we came across is in our IVR that allows users to reset their password.   When the password is auto-generated by the back-end system the security policy specs that the password must have Upper case letter(s) in the password, leading to the Asterisk system to just announce letters.
> This patch is a quick and dirty way to get Uppercase to be announce (e.q. - "g Uppercase h n b Uppercase y").
> Enhancements could be to send a option with the SayAlpha to enable the Uppercase code or a channel variable.  You pick.
> Uppercase sound files will be attached once Allison has completed them.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list