]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
udpate
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 7 Mar 2008 23:34:14 +0000 (23:34 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 7 Mar 2008 23:34:14 +0000 (23:34 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7838 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_voicemail/mod_voicemail.c

index f5d16647a0dc5d67e8c0b360b7c584f86b71e362..807d5c93bb281bd6ac2d6d02db6eeef3ea412db0 100644 (file)
@@ -1791,7 +1791,7 @@ static switch_status_t voicemail_leave_main(switch_core_session_t *session, cons
 
        if ((voicemail_greeting_number = switch_channel_get_variable(channel, "voicemail_greeting_number"))) {
                int num = atoi(voicemail_greeting_number);
-               if (num > 0 && num < VM_MAX_GREETINGS) {
+               if (num > 0 && num <= VM_MAX_GREETINGS) {
                        greet_path = switch_mprintf("%s%sgreeting_%d.%s", dir_path, SWITCH_PATH_SEPARATOR, num, profile->file_ext);
                }
        } else {