]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
zigged where i should have zagged
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 19 Nov 2007 17:19:32 +0000 (17:19 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 19 Nov 2007 17:19:32 +0000 (17:19 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6335 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_woomera/mod_woomera.c
src/switch_channel.c

index 717ead3db9381e065a49cae9da10db6272f6d43e..835ec6a6bea159e099b1d21f16e7d18164966583 100644 (file)
@@ -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;
        }
 
index 4c7c256bd155f7958a45793a80cf67f78a1fde90..ebe61565c6f1ec1446ccbb283fc1f5b7b0a7c0bd 100644 (file)
@@ -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;
 }