From: Giovanni Maruzzelli Date: Tue, 2 Feb 2010 09:33:23 +0000 (+0000) Subject: skypiax: timers twiking X-Git-Tag: v1.0.6~561 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d44caaaaad029c73eaf54d547d4d068eaa534f7;p=thirdparty%2Ffreeswitch.git skypiax: timers twiking git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16550 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_skypiax/mod_skypiax.c b/src/mod/endpoints/mod_skypiax/mod_skypiax.c index 927d02797b..f3ba964967 100644 --- a/src/mod/endpoints/mod_skypiax/mod_skypiax.c +++ b/src/mod/endpoints/mod_skypiax/mod_skypiax.c @@ -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)) { diff --git a/src/mod/endpoints/mod_skypiax/skypiax_protocol.c b/src/mod/endpoints/mod_skypiax/skypiax_protocol.c index 2c199279f0..6c500d847f 100644 --- a/src/mod/endpoints/mod_skypiax/skypiax_protocol.c +++ b/src/mod/endpoints/mod_skypiax/skypiax_protocol.c @@ -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;