]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Sat, 15 Apr 2006 06:06:46 +0000 (06:06 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Sat, 15 Apr 2006 06:06:46 +0000 (06:06 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1166 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_dingaling/mod_dingaling.c

index eaf7d8b9bfa068600f185709f0948f6dc878c62c..27e647400ae9a9eca8ca53202bef4ff51480c5ed 100644 (file)
@@ -345,7 +345,7 @@ static void *SWITCH_THREAD_FUNC negotiate_thread_run(switch_thread *thread, void
                        return NULL;
                }
                switch_yield(1000);
-               printf("WAIT %s %d %d %d\n", switch_channel_get_name(channel), switch_test_flag(tech_pvt, TFLAG_INIT), switch_test_flag(tech_pvt, TFLAG_CODEC_READY), switch_test_flag(tech_pvt, TFLAG_RTP_READY));
+               //printf("WAIT %s %d %d %d\n", switch_channel_get_name(channel), switch_test_flag(tech_pvt, TFLAG_INIT), switch_test_flag(tech_pvt, TFLAG_CODEC_READY), switch_test_flag(tech_pvt, TFLAG_RTP_READY));
        }
 
        
@@ -795,7 +795,9 @@ static switch_status channel_write_frame(switch_core_session *session, switch_fr
        //printf("%s send %d bytes %d samples in %d frames ts=%d\n", switch_channel_get_name(channel), frame->datalen, samples, frames, tech_pvt->timestamp_send);
 
 
-       switch_rtp_write(tech_pvt->rtp_session, frame->data, frame->datalen, samples);
+       if (switch_rtp_write(tech_pvt->rtp_session, frame->data, frame->datalen, samples) < 0) {
+               return SWITCH_STATUS_FALSE;
+       }
        tech_pvt->timestamp_send += (int) samples;
 
        switch_clear_flag(tech_pvt, TFLAG_WRITING);