From: Anthony Minessale Date: Fri, 28 Oct 2011 20:58:17 +0000 (-0500) Subject: don't all double unpark of same channel X-Git-Tag: v1.2-rc1~27^2~270 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8470594425d666a1000b386243df289d41c01ad;p=thirdparty%2Ffreeswitch.git don't all double unpark of same channel --- 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; } }