提交 f8470594 authored 作者: Anthony Minessale's avatar Anthony Minessale

don't all double unpark of same channel

上级 ecbd1db8
...@@ -450,6 +450,9 @@ SWITCH_STANDARD_APP(valet_parking_function) ...@@ -450,6 +450,9 @@ SWITCH_STANDARD_APP(valet_parking_function)
if (!token) { if (!token) {
switch_mutex_lock(lot->mutex); switch_mutex_lock(lot->mutex);
token = (valet_token_t *) switch_core_hash_find(lot->hash, ext); token = (valet_token_t *) switch_core_hash_find(lot->hash, ext);
if (token->bridged) {
token = NULL;
}
switch_mutex_unlock(lot->mutex); switch_mutex_unlock(lot->mutex);
} }
...@@ -483,8 +486,9 @@ SWITCH_STANDARD_APP(valet_parking_function) ...@@ -483,8 +486,9 @@ SWITCH_STANDARD_APP(valet_parking_function)
switch_core_session_rwunlock(b_session); switch_core_session_rwunlock(b_session);
token->timeout = 0; token->timeout = 0;
token->bridged = 1; token->bridged = 1;
switch_ivr_uuid_bridge(switch_core_session_get_uuid(session), token->uuid); switch_ivr_uuid_bridge(switch_core_session_get_uuid(session), token->uuid);
return; return;
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论