diff options
author | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-16 19:03:22 +0000 |
---|---|---|
committer | root <root@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-16 19:03:22 +0000 |
commit | ea0a7811f413c3a2b00aae1406c7a573176e1d7e (patch) | |
tree | 87ae975af97b0ca0f711f1b5bff3805567ea4fb5 /apps | |
parent | 894b8e2b9e96a41306e5261ef7154471818f6c39 (diff) |
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@10322 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 0e41da1b9..4a3aa2a46 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -3407,7 +3407,7 @@ static int forward_message(struct ast_channel *chan, char *context, char *dir, i break; } - if( use_directory ) { + if (use_directory) { /* use app_directory */ char old_context[sizeof(chan->context)]; @@ -3424,7 +3424,7 @@ static int forward_message(struct ast_channel *chan, char *context, char *dir, i old_priority = chan->priority; /* call the the Directory, changes the channel */ - res = pbx_exec(chan, app, ((context)?context:chan->context), 1); + res = pbx_exec(chan, app, context ? context : "default", 1); ast_copy_string(username, chan->exten, sizeof(username)); |