forked from Mirrors/freeswitch
windows build var types.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4909 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
351af9da97
commit
77121a3184
@ -50,9 +50,9 @@ struct switch_unicast_conninfo {
|
||||
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 @@ typedef struct switch_unicast_conninfo switch_unicast_conninfo_t;
|
||||
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);
|
||||
|
||||
/*!
|
||||
|
@ -83,7 +83,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_sleep(switch_core_session_t *session,
|
||||
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_deactivate_unicast(switch_core_sessio
|
||||
|
||||
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 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_parse_event(switch_core_session_t *se
|
||||
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");
|
||||
|
Loading…
Reference in New Issue
Block a user