[asterisk-commits] file: branch 11 r411244 - in /branches/11: ./ main/say.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Mar 26 17:44:16 CDT 2014
Author: file
Date: Wed Mar 26 17:44:11 2014
New Revision: 411244
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=411244
Log:
say: Fix a bug where SayNumber in Polish tries to play incorrect sound.
This change fixes a bug where calling SayNumber with a number divisible by
100 using the Polish language would cause the code to attempt to play a
sound file with an empty name.
(closes issue ASTERISK-23509)
Reported by: zvision
Review: https://reviewboard.asterisk.org/r/3378/
........
Merged revisions 411243 from http://svn.asterisk.org/svn/asterisk/branches/1.8
Modified:
branches/11/ (props changed)
branches/11/main/say.c
Propchange: branches/11/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: branches/11/main/say.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/main/say.c?view=diff&rev=411244&r1=411243&r2=411244
==============================================================================
--- branches/11/main/say.c (original)
+++ branches/11/main/say.c Wed Mar 26 17:44:11 2014
@@ -1901,17 +1901,17 @@
if (i100>0)
pl_odtworz_plik(chan, language, audiofd, ctrlfd, ints, odm->setki[i100]);
- if ( m100 > 0 && m100 <=9 ) {
- if (m1000>0)
+ if (m100 > 0 && m100 <= 9) {
+ if (m1000 > 0)
pl_odtworz_plik(chan, language, audiofd, ctrlfd, ints, odm->cyfry2[m100]);
else
pl_odtworz_plik(chan, language, audiofd, ctrlfd, ints, odm->cyfry[m100]);
- } else if (m100 % 10 == 0) {
+ } else if (m100 % 10 == 0 && m100 != 0) {
pl_odtworz_plik(chan, language, audiofd, ctrlfd, ints, odm->dziesiatki[m100 / 10]);
- } else if (m100 <= 19 ) {
+ } else if (m100 > 10 && m100 <= 19) {
pl_odtworz_plik(chan, language, audiofd, ctrlfd, ints, odm->nastki[m100 % 10]);
- } else if (m100 != 0) {
- if (odm->separator_dziesiatek[0]==' ') {
+ } else if (m100 > 20) {
+ if (odm->separator_dziesiatek[0] == ' ') {
pl_odtworz_plik(chan, language, audiofd, ctrlfd, ints, odm->dziesiatki[m100 / 10]);
pl_odtworz_plik(chan, language, audiofd, ctrlfd, ints, odm->cyfry2[m100 % 10]);
} else {
More information about the asterisk-commits
mailing list