]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix auto in will not use the last slot
authorMichael Jerris <mike@jerris.com>
Mon, 6 May 2013 15:45:30 +0000 (11:45 -0400)
committerMichael Jerris <mike@jerris.com>
Mon, 6 May 2013 15:45:30 +0000 (11:45 -0400)
src/mod/applications/mod_valet_parking/mod_valet_parking.c

index 773fdbabebdfe8c1738d56a531452376d4842185..fe8f34804d6062a66879ec98d0691c6e9b794557 100644 (file)
@@ -207,7 +207,7 @@ static valet_token_t *next_id(switch_core_session_t *session, valet_lot_t *lot,
                }
        }
 
-       for (i = min; (i < max || max == 0); i++) {
+       for (i = min; (i <= max || max == 0); i++) {
                switch_snprintf(buf, sizeof(buf), "%d", i);
                switch_mutex_lock(lot->mutex);
                token = (valet_token_t *) switch_core_hash_find(lot->hash, buf);