skypiax: compile on windoz, not yet tested
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14521 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
0e67168c45
commit
f32e37990d
|
@ -894,7 +894,7 @@ static void *SWITCH_THREAD_FUNC skypiax_signaling_thread_func(switch_thread_t *
|
|||
if (channel) {
|
||||
switch_channel_state_t state = switch_channel_get_state(channel);
|
||||
if (state < CS_EXECUTE) {
|
||||
usleep(10000); //10 msec, let the state evolve from CS_NEW
|
||||
switch_sleep(10000); //10 msec, let the state evolve from CS_NEW
|
||||
}
|
||||
switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING);
|
||||
} else {
|
||||
|
@ -909,7 +909,7 @@ static void *SWITCH_THREAD_FUNC skypiax_signaling_thread_func(switch_thread_t *
|
|||
*tech_pvt->skype_call_id = '\0';
|
||||
|
||||
//ERRORA("LET'S WAIT\n", SKYPIAX_P_LOG);
|
||||
usleep(300000); //0.3 sec
|
||||
switch_sleep(300000); //0.3 sec
|
||||
//ERRORA("WAIT'S OVER\n", SKYPIAX_P_LOG);
|
||||
tech_pvt->skype_callflow = CALLFLOW_STATUS_FINISHED;
|
||||
} else {
|
||||
|
|
|
@ -50,7 +50,7 @@ int skypiax_socket_create_and_bind(private_t * tech_pvt, int *which_port)
|
|||
while (bind(s, (struct sockaddr *) &my_addr, sizeof(struct sockaddr)) < 0) {
|
||||
DEBUGA_SKYPE("*which_port=%d, tech_pvt->tcp_cli_port=%d, tech_pvt->tcp_srv_port=%d\n", SKYPIAX_P_LOG, *which_port, tech_pvt->tcp_cli_port,
|
||||
tech_pvt->tcp_srv_port);
|
||||
DEBUGA_SKYPE("EADDRINUSE=%d, bind errno=%d, error: %s\n", SKYPIAX_P_LOG, EADDRINUSE, errno, strerror(errno));
|
||||
DEBUGA_SKYPE("bind errno=%d, error: %s\n", SKYPIAX_P_LOG, errno, strerror(errno));
|
||||
start_port++;
|
||||
my_addr.sin_port = htons(start_port);
|
||||
*which_port = start_port;
|
||||
|
|
Loading…
Reference in New Issue