diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2010-09-28 18:20:20 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2010-09-28 18:20:20 +0000 |
commit | 7157b4815018bde5e6066f49ae9a6ab087694018 (patch) | |
tree | 80312d731b5d271b32891813eb236cb07975c542 /apps | |
parent | 01eda62762efe135b43968115812a41b19c23234 (diff) |
Merged revisions 289104 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
........
r289104 | tilghman | 2010-09-28 13:18:43 -0500 (Tue, 28 Sep 2010) | 4 lines
Solaris compatibility fixes
Review: https://reviewboard.asterisk.org/r/942/
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@289112 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 87bfcabfb..46c3f4dc3 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -12432,7 +12432,7 @@ AST_TEST_DEFINE(test_voicemail_notify_endl) char testcontext[] = "test"; char testmailbox[] = "00000000"; char from[] = "test@example.net", cidnum[] = "1234", cidname[] = "Mark Spencer", format[] = "gsm"; - char attach[] = "/var/lib/asterisk/sounds/en/tt-weasels", attach2[] = "/var/lib/asterisk/sounds/en/tt-somethingwrong"; + char attach[256], attach2[256]; char buf[256] = ""; /* No line should actually be longer than 80 */ struct ast_channel *chan = NULL; struct ast_vm_user *vmu, vmus = { @@ -12470,6 +12470,9 @@ AST_TEST_DEFINE(test_voicemail_notify_endl) break; } + snprintf(attach, sizeof(attach), "%s/sounds/en/tt-weasels", ast_config_AST_VAR_DIR); + snprintf(attach2, sizeof(attach2), "%s/sounds/en/tt-somethingwrong", ast_config_AST_VAR_DIR); + if (!(vmu = find_user(&vmus, testcontext, testmailbox)) && !(vmu = find_or_create(testcontext, testmailbox))) { ast_test_status_update(test, "Cannot create vmu structure\n"); |