]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
issue #5795
authorJosh Roberson <josh@asteriasgi.com>
Sun, 20 Nov 2005 05:22:26 +0000 (05:22 +0000)
committerJosh Roberson <josh@asteriasgi.com>
Sun, 20 Nov 2005 05:22:26 +0000 (05:22 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7139 65c4cc65-6c06-0410-ace0-fbb531ad65f3

ChangeLog
apps/app_hasnewvoicemail.c

index 4e98e55bb42e94ca201ff240d51509677bf8165c..aea2bc054bbd9539606dc5be3385e509a2181d4c 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2005-11-20  Josh Roberson <josh@asteriasgi.com>
 
+       * apps/app_voicemail.c: Fix conditional jump option to jump properly, also correct a small typo in the description. (issue #5795)
+
        * channels/chan_iax2.c: Fix output of iax2 show peer <peer> (issue #5792)
 
        * UPGRADE.txt: Adjust note for naming conventions of iax2 channels. (issue #5792)
index 678d8c69bbb829b28be10787c526105ffa01545b..740975dd0d0ce25cb5c9c53969bb94962b020e61 100755 (executable)
@@ -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);
                }
        }