[asterisk-users] pbx.c: We were unable to say the number
Jeff LaCoursiere
jeff at sunfone.com
Sun Mar 27 16:30:09 CDT 2011
On Sun, 2011-03-27 at 16:14 -0500, Sherwood McGowan wrote:
>
>
> On Sun, Mar 27, 2011 at 2:50 PM, Mohammad Khan <beeplove at gmail.com>
> wrote:
> Here is the dialplan in macro:
>
> exten => s,n,SayNumber($[${ARG1} % 100])
>
> when 662 was passed as ARG1, I had the following at log:
>
> WARNING[15217] pbx.c: We were unable to say the number 62, is
> it too large?
>
> Do you see any odd in my dialplan?
>
>
>
>
> 662 % 100 = 66.2, not 62. It seems to me that there's more going on
> here..Maybe Asterisk is being confused by actually getting 66.2? I'm
> not readily able to look into the source, but I think that Asterisk
> (or at least, SayNumber) cannot handle a number with a decimal point,
> but please don't take that as gospel.
>
'%' is 'modulus', and 62 is the correct result. I am betting it is the
language setting, and missing audio files.
j
More information about the asterisk-users
mailing list