From d10082c23f195a77983876a8329599bf76074a27 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 23 May 2007 13:37:35 +0000 Subject: [PATCH] tweak from eariler patch (reported by Dale Thatcher) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5211 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_ivr_originate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/switch_ivr_originate.c b/src/switch_ivr_originate.c index 218d665e3a..42085e5e96 100644 --- a/src/switch_ivr_originate.c +++ b/src/switch_ivr_originate.c @@ -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); }