switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "New allocated port %d for IP %s/%d.%d.%d.%d\n", rtp_port, local_ip,
SNGTC_NIPV4(host_ip));
*p_rtp_port = rtp_port;
- *rtp_fd = (void *)(long)rtp_port;
+ *rtp_fd = NULL;
return 0;
}
switch_port_t rtp_port;
struct sangoma_transcoding_session *sess = usr_priv;
+ rtp_port = codec_req_leg->host_udp_port;
+ *rtp_fd = NULL;
+
/*
* We *MUST* use a new pool
* Do not use the session pool since the session may go away while the RTP socket should linger around
return -1;
}
- rtp_port = (switch_port_t)(long)*rtp_fd;
- *rtp_fd = NULL;
-
- codec_req_leg->host_udp_port = rtp_port;
-
local_ip_addr.s_addr = htonl(codec_req_leg->host_ip);
switch_inet_ntop(AF_INET, &local_ip_addr, local_ip, sizeof(local_ip));
sngtc_codec_ipv4_hex_to_str(codec_reply_leg->codec_ip, codec_ip);