mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Solaris compatibility fixes
Review: https://reviewboard.asterisk.org/r/942/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@289104 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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");
|
||||
|
Reference in New Issue
Block a user