Hello, I use the SayNumber() with variable. for example the number 1234 - asterisk play the number without and. -- Executing [888 at from-internal:1] Set("SIP/103-0000035d", "LANGUAGE=en") in new stack -- Executing [888 at from-internal:2] SayNumber("SIP/103-0000035d", "1234") in new stack -- <SIP/103-0000035d> Playing 'digits/1.ulaw' (language 'en') -- <SIP/103-0000035d> Playing 'digits/thousand.ulaw' (language 'en') -- <SIP/103-0000035d> Playing 'digits/2.ulaw' (language 'en') -- <SIP/103-0000035d> Playing 'digits/hundred.ulaw' (language 'en') -- <SIP/103-0000035d> Playing 'digits/30.ulaw' (language 'en') -- <SIP/103-0000035d> Playing 'digits/4.ulaw' (language 'en') It`s not will to be: ; "one - thousand - two - hundred - *and* - thirty - four ?? I put and.ulaw file on en dir and on en/digits dir. Thanks Naftali -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120723/b270b408/attachment.htm>
No, it will not have "and" if You just put and.ulaw. You should correct file say.conf - there are rules how to read numbers, and You should add "and" there if You want to hear it. 2012/7/23 ????? ???? <nafmaeir at gmail.com>:> It`s not will to be: ; "one - thousand - two - hundred - and - thirty - four > ?? > > I put and.ulaw file on en dir and on en/digits dir.
On Mon, Jul 23, 2012 at 10:55:54AM +0300, ????? ???? wrote:> Hello, > > I use the SayNumber() with variable. > > for example the number 1234 - asterisk play the number without and. > > > -- Executing [888 at from-internal:1] Set("SIP/103-0000035d", > "LANGUAGE=en") in new stack > -- Executing [888 at from-internal:2] SayNumber("SIP/103-0000035d", > "1234") in new stack > -- <SIP/103-0000035d> Playing 'digits/1.ulaw' (language 'en') > -- <SIP/103-0000035d> Playing 'digits/thousand.ulaw' (language 'en') > -- <SIP/103-0000035d> Playing 'digits/2.ulaw' (language 'en') > -- <SIP/103-0000035d> Playing 'digits/hundred.ulaw' (language 'en') > -- <SIP/103-0000035d> Playing 'digits/30.ulaw' (language 'en') > -- <SIP/103-0000035d> Playing 'digits/4.ulaw' (language 'en') > > It`s not will to be: ; "one - thousand - two - hundred - *and* - thirty - > four ??Asterisk says numbers slightly differently depending on the language. You would expect that if the language is, say, Hebrew. If the LANGUAGE is set to 'he' or something that begins with 'he_', you'll get the 'and'. -- Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen at xorcom.com +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir