[asterisk-users] pbx.c: We were unable to say the number

Mohammad Khan beeplove at gmail.com
Thu Mar 31 08:33:28 CDT 2011


Finally, I have uncovered the mystery!

Channel terminated just at the time when it was executing SayNumber, ended
up the warning in my log!

Thanks everybody for your time on this thread.

Mohammad




On Sun, Mar 27, 2011 at 5:32 PM, Sherwood McGowan <
sherwood.mcgowan at gmail.com> wrote:

> Oh crap, you're right, my bad. Yes, I also agree, it's most probably the
> language and/or missing files
>
> On Sun, Mar 27, 2011 at 4:30 PM, Jeff LaCoursiere <jeff at sunfone.com>wrote:
>
>> 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
>>
>>
>>
>> --
>> _____________________________________________________________________
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>> New to Asterisk? Join us for a live introductory webinar every Thurs:
>>               http://www.asterisk.org/hello
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>>   http://lists.digium.com/mailman/listinfo/asterisk-users
>>
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110331/1fa81e1a/attachment.htm>


More information about the asterisk-users mailing list