提交 335f844a authored 作者: Anthony Minessale's avatar Anthony Minessale

update

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9099 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 493f6abd
...@@ -471,7 +471,7 @@ switch_status_t sofia_glue_ext_address_lookup(sofia_profile_t *profile, private_ ...@@ -471,7 +471,7 @@ switch_status_t sofia_glue_ext_address_lookup(sofia_profile_t *profile, private_
} }
} }
if (status != SWITCH_STATUS_SUCCESS) { if (status != SWITCH_STATUS_SUCCESS) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Stun Failed! %s:%d [%s]\n", stun_ip, SWITCH_STUN_DEFAULT_PORT, error); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Stun Failed! %s:%d [%s]\n", stun_ip, stun_port, error);
goto out; goto out;
} }
if (!*ip) { if (!*ip) {
......
...@@ -489,6 +489,12 @@ SWITCH_DECLARE(switch_status_t) switch_stun_lookup(char **ip, ...@@ -489,6 +489,12 @@ SWITCH_DECLARE(switch_status_t) switch_stun_lookup(char **ip,
switch_stun_random_string(username, 32, NULL); switch_stun_random_string(username, 32, NULL);
switch_stun_packet_attribute_add_username(packet, username, 32); switch_stun_packet_attribute_add_username(packet, username, 32);
bytes = switch_stun_packet_length(packet); bytes = switch_stun_packet_length(packet);
if (funny) {
packet = (switch_stun_packet_t *) buf;
bytes += 4;
}
switch_socket_sendto(sock, remote_addr, 0, (void *) packet, &bytes); switch_socket_sendto(sock, remote_addr, 0, (void *) packet, &bytes);
started = switch_timestamp_now(); started = switch_timestamp_now();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论