diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-09-28 18:18:43 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-09-28 18:18:43 +0000 |
commit | 945ccbb69099c3b9a4cd5cfdb679f4eb18f0b3d8 (patch) | |
tree | 297c8a9788fc502b35f3cb29edecfd4f49b924c2 /apps | |
parent | c1992316ae7b98e191df106898b0ba26bbe1b56b (diff) |
Solaris compatibility fixes
Review: https://reviewboard.asterisk.org/r/942/
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.8@289104 f38db490-d61c-443f-a65b-d21fe96a405b
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"); |