[asterisk-bugs] [JIRA] (ASTERISK-29950) SayNumber can handle '01' to '07', but not '08' or '09'

Jim Van Meggelen (JIRA) noreply at issues.asterisk.org
Wed Mar 9 09:01:06 CST 2022


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

Jim Van Meggelen commented on ASTERISK-29950:
---------------------------------------------

So, a feature not a bug? ;-)

It's part of a date string YYYYMMDD, and the day is going to be in the range 00-31. Works for every day of the month except 08 and 09!

Sounds like I need a workaround. Time to fire up the regex generator!


> SayNumber can handle '01' to '07', but not '08' or '09'
> -------------------------------------------------------
>
>                 Key: ASTERISK-29950
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29950
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: PBX/General
>    Affects Versions: 16.22.0
>         Environment: CentOS 7
>            Reporter: Jim Van Meggelen
>
> Run the following dialplan:
> same => n,SayNumber(01)
> same => n,SayNumber(02)
> same => n,SayNumber(03)
> same => n,SayNumber(04)
> same => n,SayNumber(05)
> same => n,SayNumber(06)
> same => n,SayNumber(07)
> same => n,SayNumber(08)
> same => n,SayNumber(09)
> same => n,SayNumber(10)
> same => n,SayNumber(17)
> same => n,SayNumber(18)
> same => n,SayNumber(19)
> I get an error as follows (ONLY on 08 and 09)
> WARNING[881][C-00000305]: pbx_builtins.c:1351 pbx_builtin_saynumber: argument '08' to SayNumber could not be parsed as a number.
> WARNING[881][C-00000305]: pbx_builtins.c:1351 pbx_builtin_saynumber: argument '09' to SayNumber could not be parsed as a number.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list