diff options
author | Mark Spencer <markster@digium.com> | 2003-12-11 20:55:26 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-12-11 20:55:26 +0000 |
commit | 25ebd8de49a1b7860a0161982e729281b841f8c4 (patch) | |
tree | 92c5cf4179d3764477d5c143a4df9527c0257a39 /apps | |
parent | 41d9f563a8f20f1d1dc8a90295a1f37b62e29b95 (diff) |
Properly fix double locking issue, fix wav49 issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1855 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_voicemail.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index a0bea848b..a7b43a88d 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -1928,6 +1928,9 @@ forward_message(struct ast_channel *chan, char *context, char *dir, int curmsg, strncpy(tmp, fmt, sizeof(tmp)); stringp = tmp; while((s = strsep(&stringp, "|"))) { + /* XXX This is a hack -- we should use build_filename or similar XXX */ + if (!strcasecmp(s, "wav49")) + s = "WAV"; snprintf(sys, sizeof(sys), "cp %s/msg%04d.%s %s/msg%04d.%s\n", dir, curmsg, s, todir, todircount, s); ast_log(LOG_DEBUG, sys); system(sys); |