diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-11-14 00:21:31 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-11-14 00:21:31 +0000 |
commit | 8483010bdaa3b8f9ebf2e0631d2382ba4031ef99 (patch) | |
tree | bce783bab762f4c2e0b40407bf4bb37ea9a63963 /apps | |
parent | 0ccf36d24d76845f905abf32bf8b83f497374d52 (diff) |
If no vm box, go to 101 if appropriate (bug #489)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1746 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_voicemail.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 6a5715ffa..fd18374ae 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -1235,8 +1235,12 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, int silent, int } else ast_log(LOG_WARNING, "No format for saving voicemail?\n"); free_user(vmu); - } else + } else { ast_log(LOG_WARNING, "No entry in voicemail config file for '%s'\n", ext); + /*Send the call to n+101 priority, where n is the current priority*/ + if (ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->callerid)) + chan->priority+=100; + } /* Leave voicemail for someone */ manager_event(EVENT_FLAG_CALL, "MessageWaiting", "Mailbox: %s\r\nWaiting: %d\r\n", ext, ast_app_has_voicemail(ext)); return res; |