[asterisk-commits] jpeeler: trunk r249891 - /trunk/apps/app_voicemail.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Mar 2 12:31:09 CST 2010
Author: jpeeler
Date: Tue Mar 2 12:31:05 2010
New Revision: 249891
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=249891
Log:
fix build by checking result of symlink in test_voicemail_vmsayname
Modified:
trunk/apps/app_voicemail.c
Modified: trunk/apps/app_voicemail.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/app_voicemail.c?view=diff&rev=249891&r1=249890&r2=249891
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Tue Mar 2 12:31:05 2010
@@ -11707,7 +11707,10 @@
snprintf(dir, sizeof(dir), "%s/sounds/beep.gsm", ast_config_AST_VAR_DIR);
snprintf(dir2, sizeof(dir2), "%s%s/%s/greet.gsm", VM_SPOOL_DIR, TEST_CONTEXT, TEST_EXTENSION);
/* we're not going to hear the sound anyway, just use a valid gsm audio file */
- symlink(dir, dir2);
+ if ((res = symlink(dir, dir2))) {
+ ast_log(LOG_WARNING, "Symlink reported %s\n", strerror(errno));
+ goto exit_vmsayname_test;
+ }
ast_test_status_update(test, "Test playing created mailbox greeting...\n");
snprintf(dir, sizeof(dir), "%s@%s", TEST_EXTENSION, TEST_CONTEXT); /* not a dir, don't get confused */
res = vmsayname_exec(test_channel1, dir);
More information about the asterisk-commits
mailing list