diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-11-20 23:36:45 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-11-20 23:36:45 +0000 |
commit | 92484db103bd588309e63ba313c8e659cd6c5ef6 (patch) | |
tree | 2b27587212961e932e3dfebe01b03f047299408f | |
parent | 32519375473a11cb24fe9a85f59c77ad9ae45c44 (diff) |
issue #5795
git-svn-id: http://svn.digium.com/svn/asterisk/branches/v1-2@7151 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | ChangeLog | 2 | ||||
-rwxr-xr-x | apps/app_hasnewvoicemail.c | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -1,5 +1,7 @@ 2005-11-20 Russell Bryant <russell@digium.com> + * apps/app_hasnewvoicemail.c: Fix a typo in the application description. Also, fix the logic in checking for success when jumping to priority n+101. (issue #5795) + * UPGRADE.txt: Add a note on a second way that the IAX2 channel naming convention has changed. (issue #5792) * channels/chan_iax2.c: Fix alignment of the output for the "iax2 show peer <peer>" CLI command (issue #5792) diff --git a/apps/app_hasnewvoicemail.c b/apps/app_hasnewvoicemail.c index 678d8c69b..740975dd0 100755 --- a/apps/app_hasnewvoicemail.c +++ b/apps/app_hasnewvoicemail.c @@ -68,7 +68,7 @@ static char *hasnewvoicemail_descrip = "Assumes folder 'INBOX' if folder is not specified. Optionally sets <varname> to the number of messages\n" "in that folder.\n" " The option string may contain zero of the following character:\n" -" 'j' -- jump to priority n+101, if there is new voicemail in tolder 'folder' or INBOX\n" +" 'j' -- jump to priority n+101, if there is new voicemail in folder 'folder' or INBOX\n" " This application sets the following channel variable upon completion:\n" " HASVMSTATUS The result of the new voicemail check returned as a text string as follows\n" " <# of messages in the folder, 0 for NONE>\n"; @@ -163,7 +163,7 @@ static int hasvoicemail_exec(struct ast_channel *chan, void *data) if (vmcount > 0) { /* Branch to the next extension */ if (priority_jump || option_priority_jumping) { - if (!ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101)) + if (ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101)) ast_log(LOG_WARNING, "VM box %s@%s has new voicemail, but extension %s, priority %d doesn't exist\n", vmbox, context, chan->exten, chan->priority + 101); } } |