From 3fcf09bab02076bd888ba14e8ef1f34cf0a9e566 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 19 Nov 2007 17:19:32 +0000 Subject: [PATCH] zigged where i should have zagged git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6335 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_woomera/mod_woomera.c | 4 ++-- src/switch_channel.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mod/endpoints/mod_woomera/mod_woomera.c b/src/mod/endpoints/mod_woomera/mod_woomera.c index 717ead3db9..835ec6a6be 100644 --- a/src/mod/endpoints/mod_woomera/mod_woomera.c +++ b/src/mod/endpoints/mod_woomera/mod_woomera.c @@ -396,7 +396,7 @@ static switch_status_t woomera_read_frame(switch_core_session_t *session, switch assert(tech_pvt != NULL); for(;;) { - if (!switch_test_flag(tech_pvt, TFLAG_ABORT) || !tech_pvt->udp_socket) { + if (switch_test_flag(tech_pvt, TFLAG_ABORT) || !tech_pvt->udp_socket) { return SWITCH_STATUS_GENERR; } @@ -441,7 +441,7 @@ static switch_status_t woomera_write_frame(switch_core_session_t *session, switc tech_pvt = switch_core_session_get_private(session); assert(tech_pvt != NULL); - if (!switch_test_flag(tech_pvt, TFLAG_ABORT) || !tech_pvt->udp_socket) { + if (switch_test_flag(tech_pvt, TFLAG_ABORT) || !tech_pvt->udp_socket) { return SWITCH_STATUS_GENERR; } diff --git a/src/switch_channel.c b/src/switch_channel.c index 4c7c256bd1..ebe61565c6 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -179,7 +179,7 @@ SWITCH_DECLARE(switch_status_t) switch_channel_alloc(switch_channel_t **channel, if (((*channel) = switch_core_alloc(pool, sizeof(switch_channel_t))) == 0) { return SWITCH_STATUS_MEMERR; } - + switch_event_create(&(*channel)->variables, SWITCH_EVENT_MESSAGE); switch_core_hash_init(&(*channel)->private_hash, pool); @@ -189,6 +189,7 @@ SWITCH_DECLARE(switch_status_t) switch_channel_alloc(switch_channel_t **channel, switch_mutex_init(&(*channel)->flag_mutex, SWITCH_MUTEX_NESTED, pool); switch_mutex_init(&(*channel)->profile_mutex, SWITCH_MUTEX_NESTED, pool); (*channel)->hangup_cause = SWITCH_CAUSE_UNALLOCATED; + (*channel)->name = "N/A"; return SWITCH_STATUS_SUCCESS; }