[commit] r6335 - in freeswitch/trunk/src: . mod/endpoints/mod_woomera
Author: anthm Date: Mon Nov 19 12:19:32 2007 New Revision: 6335 Modified: freeswitch/trunk/src/mod/endpoints/mod_woomera/mod_woomera.c freeswitch/trunk/src/switch_channel.c Log: zigged where i should have zagged Modified: freeswitch/trunk/src/mod/endpoints/mod_woomera/mod_woomera.c ============================================================================== --- freeswitch/trunk/src/mod/endpoints/mod_woomera/mod_woomera.c (original) +++ freeswitch/trunk/src/mod/endpoints/mod_woomera/mod_woomera.c Mon Nov 19 12:19:32 2007 @@ -396,7 +396,7 @@ 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 @@ 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; } Modified: freeswitch/trunk/src/switch_channel.c ============================================================================== --- freeswitch/trunk/src/switch_channel.c (original) +++ freeswitch/trunk/src/switch_channel.c Mon Nov 19 12:19:32 2007 @@ -179,7 +179,7 @@ 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_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; }
participants (1)
-
Freeswitch SVN