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

Sean Bright (JIRA) noreply at issues.asterisk.org
Fri Mar 4 13:59:07 CST 2022


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

Sean Bright commented on ASTERISK-29950:
----------------------------------------

Yeah, the function we are using to parse the numeric string tries to guess the base of the number and because the leading digit is a zero it tries to parse as octal.

> 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