diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-05-09 21:22:42 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-05-09 21:22:42 +0000 |
commit | 71a41a28b1e56af631e357bca8d816a1dac84000 (patch) | |
tree | e6fd3676de72e72333e4784a6fb64c38f41c6fb4 /channels/chan_unistim.c | |
parent | d2e5ffcec08e5041776428950ed13590f7fe3551 (diff) |
Adding support for "urgent" voicemail messages. Messages which are
marked "urgent" are considered to be higher priority than other messages
and so they will be played before any other messages in a user's mailbox.
There are two ways to leave an urgent message.
1. send the 'U' option to VoiceMail().
2. Set review=yes in voicemail.conf. This will give instructions for
a caller to mark a message as urgent after the message has been recorded.
I have tested that this works correctly with file and ODBC storage, and James
Rothenberger (who wrote initial support for this feature) has tested its use
with IMAP storage.
(closes issue #11817)
Reported by: jaroth
Based on branch http://svn.digium.com/svn/asterisk/team/jrothenberger/asterisk-urgent
Tested by: putnopvut, jaroth
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115588 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_unistim.c')
-rw-r--r-- | channels/chan_unistim.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_unistim.c b/channels/chan_unistim.c index dca01ad31..3eda9334a 100644 --- a/channels/chan_unistim.c +++ b/channels/chan_unistim.c @@ -4375,7 +4375,7 @@ static int unistim_sendtext(struct ast_channel *ast, const char *text) static int unistim_send_mwi_to_peer(struct unistimsession *s, unsigned int tick) { struct ast_event *event; - int new, old; + int new, old, urgent; char *mailbox, *context; struct unistim_line *peer = s->device->lines; @@ -4396,7 +4396,7 @@ static int unistim_send_mwi_to_peer(struct unistimsession *s, unsigned int tick) old = ast_event_get_ie_uint(event, AST_EVENT_IE_OLDMSGS); ast_event_destroy(event); } else /* Fall back on checking the mailbox directly */ - ast_app_inboxcount(peer->mailbox, &new, &old); + ast_app_inboxcount(peer->mailbox, &urgent, &new, &old); peer->nextmsgcheck = tick + TIMER_MWI; |