mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-12 20:27:19 +00:00
tweak from eariler patch (reported by Dale Thatcher)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5211 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
dcd1d6423b
commit
d10082c23f
@ -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))) &&
|
||||
!switch_channel_test_flag(peer_channels[i], CF_TAGGED)) {
|
||||
|
||||
if (key) {
|
||||
if (!switch_strlen_zero(key)) {
|
||||
struct key_collect *collect;
|
||||
|
||||
if ((collect = switch_core_session_alloc(peer_sessions[i], sizeof(*collect)))) {
|
||||
switch_channel_set_flag(peer_channels[i], CF_TAGGED);
|
||||
collect->key = key;
|
||||
if (file) {
|
||||
if (!switch_strlen_zero(file)) {
|
||||
collect->file = switch_core_session_strdup(peer_sessions[i], file);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user