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

tweak from eariler patch (reported by Dale Thatcher)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5211 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 dcd1d642
...@@ -177,13 +177,13 @@ static uint8_t check_channel_status(switch_channel_t **peer_channels, ...@@ -177,13 +177,13 @@ static uint8_t check_channel_status(switch_channel_t **peer_channels,
(early_ok && len == 1 && switch_channel_test_flag(peer_channels[i], CF_EARLY_MEDIA))) && (early_ok && len == 1 && switch_channel_test_flag(peer_channels[i], CF_EARLY_MEDIA))) &&
!switch_channel_test_flag(peer_channels[i], CF_TAGGED)) { !switch_channel_test_flag(peer_channels[i], CF_TAGGED)) {
if (key) { if (!switch_strlen_zero(key)) {
struct key_collect *collect; struct key_collect *collect;
if ((collect = switch_core_session_alloc(peer_sessions[i], sizeof(*collect)))) { if ((collect = switch_core_session_alloc(peer_sessions[i], sizeof(*collect)))) {
switch_channel_set_flag(peer_channels[i], CF_TAGGED); switch_channel_set_flag(peer_channels[i], CF_TAGGED);
collect->key = key; collect->key = key;
if (file) { if (!switch_strlen_zero(file)) {
collect->file = switch_core_session_strdup(peer_sessions[i], file); collect->file = switch_core_session_strdup(peer_sessions[i], file);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论