From f8470594425d666a1000b386243df289d41c01ad Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 28 Oct 2011 15:58:17 -0500 Subject: [PATCH] don't all double unpark of same channel --- src/mod/applications/mod_valet_parking/mod_valet_parking.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 8b5db58962..7c26878dec 100644 --- a/src/mod/applications/mod_valet_parking/mod_valet_parking.c +++ b/src/mod/applications/mod_valet_parking/mod_valet_parking.c @@ -450,6 +450,9 @@ SWITCH_STANDARD_APP(valet_parking_function) if (!token) { switch_mutex_lock(lot->mutex); token = (valet_token_t *) switch_core_hash_find(lot->hash, ext); + if (token->bridged) { + token = NULL; + } switch_mutex_unlock(lot->mutex); } @@ -483,8 +486,9 @@ SWITCH_STANDARD_APP(valet_parking_function) switch_core_session_rwunlock(b_session); token->timeout = 0; token->bridged = 1; - + switch_ivr_uuid_bridge(switch_core_session_get_uuid(session), token->uuid); + return; } }