aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authorroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-19 01:04:07 +0000
committerroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-19 01:04:07 +0000
commit085d1cf9a082c64b11ce812d46496a2fcbe68814 (patch)
tree2fb814266d664a4d833dbfdde1b23c1e33ab83f0 /apps/app_voicemail.c
parentdeaeb590ca51209f721a43569f807adc8beec93d (diff)
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@40451 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r--apps/app_voicemail.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index cbb7d67e7..e00eee312 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -3445,13 +3445,15 @@ static int forward_message(struct ast_channel *chan, char *context, char *dir, i
app = pbx_findapp("Directory");
if (app) {
- /* make mackup copies */
+ /* make backup copies */
+ char vmcontext[256];
memcpy(old_context, chan->context, sizeof(chan->context));
memcpy(old_exten, chan->exten, sizeof(chan->exten));
old_priority = chan->priority;
/* call the the Directory, changes the channel */
- res = pbx_exec(chan, app, context ? context : "default", 1);
+ sprintf(vmcontext, "%s||v", context ? context : "default");
+ res = pbx_exec(chan, app, vmcontext, 1);
ast_copy_string(username, chan->exten, sizeof(username));