Revision
14521
Author
gmaruzz
Date
2009-08-14 16:00:02 -0500 (Fri, 14 Aug 2009)

Log Message

skypiax: compile on windoz, not yet tested

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_skypiax/mod_skypiax.c (14520 => 14521)


--- freeswitch/trunk/src/mod/endpoints/mod_skypiax/mod_skypiax.c	2009-08-14 19:31:00 UTC (rev 14520)
+++ freeswitch/trunk/src/mod/endpoints/mod_skypiax/mod_skypiax.c	2009-08-14 21:00:02 UTC (rev 14521)
@@ -894,7 +894,7 @@
 					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 @@
 				*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 {

Modified: freeswitch/trunk/src/mod/endpoints/mod_skypiax/skypiax_protocol.c (14520 => 14521)


--- freeswitch/trunk/src/mod/endpoints/mod_skypiax/skypiax_protocol.c	2009-08-14 19:31:00 UTC (rev 14520)
+++ freeswitch/trunk/src/mod/endpoints/mod_skypiax/skypiax_protocol.c	2009-08-14 21:00:02 UTC (rev 14521)
@@ -50,7 +50,7 @@
 	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;