]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
skypiax: timers twiking
authorGiovanni Maruzzelli <gmaruzz@gmail.com>
Tue, 2 Feb 2010 09:33:23 +0000 (09:33 +0000)
committerGiovanni Maruzzelli <gmaruzz@gmail.com>
Tue, 2 Feb 2010 09:33:23 +0000 (09:33 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16550 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_skypiax/mod_skypiax.c
src/mod/endpoints/mod_skypiax/skypiax_protocol.c

index 927d02797b943051880236d8acb6b5558dcdb5a3..f3ba964967ab9af260cf7208cc1e1e94550d64f7 100644 (file)
@@ -691,7 +691,7 @@ static switch_status_t channel_read_frame(switch_core_session_t *session, switch
        tech_pvt->read_frame.flags = SFF_NONE;
        *frame = NULL;
 
-       switch_core_timer_next(&tech_pvt->timer_read);
+       //switch_core_timer_next(&tech_pvt->timer_read);
 
        if (!skypiax_audio_read(tech_pvt)) {
 
@@ -719,6 +719,7 @@ static switch_status_t channel_read_frame(switch_core_session_t *session, switch
                                DEBUGA_SKYPE("CHANNEL READ CONTINUE\n", SKYPIAX_P_LOG);
                                continue;
                        }
+       switch_core_timer_check(&tech_pvt->timer_read, SWITCH_TRUE);
                        *frame = &tech_pvt->read_frame;
 #if SWITCH_BYTE_ORDER == __BIG_ENDIAN
                        if (switch_test_flag(tech_pvt, TFLAG_LINEAR)) {
index 2c199279f000dd8cf590a22a043536393ac3594b..6c500d847fc783a47b19a75d9f063b15667e9e76 100644 (file)
@@ -1101,7 +1101,7 @@ void *skypiax_do_tcp_cli_thread_func(void *obj)
                                                                /* send the 16khz frame to the Skype client waiting for incoming audio to be sent to the remote party */
                                                                if (tech_pvt->skype_callflow != CALLFLOW_STATUS_REMOTEHOLD) {
                                                                        len = send(fd, (char *) cli_out, got, 0);
-                                                                       skypiax_sleep(5000);    //5 msec
+                                                                       //skypiax_sleep(5000);  //5 msec
 
                                                                        if (len == -1) {
                                                                                break;