From: Michael Jerris Date: Mon, 6 May 2013 15:45:30 +0000 (-0400) Subject: fix auto in will not use the last slot X-Git-Tag: v1.2.9~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99fd7a87ff2e2ef341b07871061f4cbb640fd19b;p=thirdparty%2Ffreeswitch.git fix auto in will not use the last slot --- diff --git a/src/mod/applications/mod_valet_parking/mod_valet_parking.c b/src/mod/applications/mod_valet_parking/mod_valet_parking.c index 773fdbabeb..fe8f34804d 100644 --- a/src/mod/applications/mod_valet_parking/mod_valet_parking.c +++ b/src/mod/applications/mod_valet_parking/mod_valet_parking.c @@ -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);