提交 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)
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;
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论