[Freeswitch-svn] [commit] r4909 - in freeswitch/trunk/src: . include

Freeswitch SVN mikej at freeswitch.org
Tue Apr 10 13:34:54 EDT 2007


Author: mikej
Date: Tue Apr 10 13:34:53 2007
New Revision: 4909

Modified:
   freeswitch/trunk/src/include/switch_ivr.h
   freeswitch/trunk/src/switch_ivr.c

Log:
windows build var types.

Modified: freeswitch/trunk/src/include/switch_ivr.h
==============================================================================
--- freeswitch/trunk/src/include/switch_ivr.h	(original)
+++ freeswitch/trunk/src/include/switch_ivr.h	Tue Apr 10 13:34:53 2007
@@ -50,9 +50,9 @@
 	switch_byte_t write_frame_data[SWITCH_RECOMMENDED_BUFFER_SIZE];
 	switch_socket_t *socket;
 	char *local_ip;
-	uint32_t local_port;
+	switch_port_t local_port;
 	char *remote_ip;
-	uint32_t remote_port;
+	switch_port_t remote_port;
 	switch_sockaddr_t *local_addr;
 	switch_sockaddr_t *remote_addr;
 	switch_mutex_t *flag_mutex;
@@ -75,9 +75,9 @@
 SWITCH_DECLARE(switch_status_t) switch_ivr_deactivate_unicast(switch_core_session_t *session);
 SWITCH_DECLARE(switch_status_t) switch_ivr_activate_unicast(switch_core_session_t *session, 
 															char *local_ip,
-															uint32_t local_port,
+															switch_port_t local_port,
 															char *remote_ip,
-															uint32_t remote_port,
+															switch_port_t remote_port,
 															char *transport);
 
 /*!

Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c	(original)
+++ freeswitch/trunk/src/switch_ivr.c	Tue Apr 10 13:34:53 2007
@@ -83,7 +83,7 @@
 static void *SWITCH_THREAD_FUNC unicast_thread_run(switch_thread_t *thread, void *obj)
 {
 	switch_unicast_conninfo_t *conninfo = (switch_unicast_conninfo_t *) obj;
-	switch_size_t len;
+	uint32_t len;
 	switch_channel_t *channel;
 
 	if (!conninfo) {
@@ -153,9 +153,9 @@
 
 SWITCH_DECLARE(switch_status_t) switch_ivr_activate_unicast(switch_core_session_t *session, 
 															char *local_ip,
-															uint32_t local_port,
+															switch_port_t local_port,
 															char *remote_ip,
-															uint32_t remote_port,
+															switch_port_t remote_port,
 															char *transport)
 {
 	switch_channel_t *channel;
@@ -324,7 +324,7 @@
 			transport = "udp";
 		}
 
-		switch_ivr_activate_unicast(session, local_ip, atoi(local_port), remote_ip, atoi(remote_port), transport);
+		switch_ivr_activate_unicast(session, local_ip, (switch_port_t)atoi(local_port), remote_ip, (switch_port_t)atoi(remote_port), transport);
 
 	} else if (cmd_hash == CMD_HANGUP) {
 		char *cause_name = switch_event_get_header(event, "hangup-cause");



More information about the Freeswitch-svn mailing list