[Home]

Summary:ASTERISK-04293: [patch] File ast_fileexists reports that file vm-nytt does not exist in Swedish in any format
Reporter:matti (matti)Labels:
Date Opened:2005-05-27 05:49:12Date Closed:2008-01-15 15:36:30.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Applications/app_voicemail
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 20050527__fileexists_lang.diff.txt
( 1) 4399.stable.patch.txt
Description:File ast_fileexists reports that file vm-nytt does not exist in Swedish in any format.
ast_fileexists ("vm-nytt", NULL, "se") returns a negative integer.

However, that file does exist:
(none):/usr/src/asterisk-1.0.7 # ls -l /var/lib/asterisk/sounds/se/vm-nytt.gsm
-rw-r--r--    1 1000     1000         1056 May 10 15:13 /var/lib/asterisk/sounds
/se/vm-nytt.gsm

File: /etc/asterisk/asterisk.conf
astvarlibdir => /var/lib/asterisk
Comments:By: Tilghman Lesher (tilghman) 2005-05-27 14:15:14

Try this patch.  The problem, I think, is that we correctly find soundfiles that exist in a subdirectory of a language, but not the language subdirectory itself.

The problem is that with no subdirectory, prefix is set to the empty string,
which makes the specified filepath "/se/soundfile", rather than "subdir/se/soundfile", which, when passed to ast_filehelper, is treated as an absolute path.

Please report back whether this patch fixes the problem.

By: matti (matti) 2005-05-30 01:32:55

That patch fixes the problem.

By: Mark Spencer (markster) 2005-05-30 09:13:28

Fixed in CVS head.  Thanks corydon!

By: Michael Jerris (mikej) 2005-05-30 23:20:12

patch for stable.  Disclaimer on file.

By: Russell Bryant (russell) 2005-05-30 23:33:45

fixed in 1.0, thanks!

By: Digium Subversion (svnbot) 2008-01-15 15:36:18.000-0600

Repository: asterisk
Revision: 5783

U   trunk/file.c

------------------------------------------------------------------------
r5783 | markster | 2008-01-15 15:36:18 -0600 (Tue, 15 Jan 2008) | 2 lines

Fix language handling (bug ASTERISK-4293)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=5783

By: Digium Subversion (svnbot) 2008-01-15 15:36:30.000-0600

Repository: asterisk
Revision: 5797

U   branches/v1-0/file.c

------------------------------------------------------------------------
r5797 | russell | 2008-01-15 15:36:29 -0600 (Tue, 15 Jan 2008) | 2 lines

find sound files that are in the language directory itself (bug ASTERISK-4293)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=5797