add netmask detection for nat discovery work

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13549 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale committed 2009-06-02 16:55:10 +00:00
1 parent 552e4d851d
commit b82984fe97
19 files changed
+143 -48

No files matched your search

@@ -608,7 +608,7 @@ SWITCH_STANDARD_API(stun_function)
if (pip) {
switch_copy_string(ip_buf, pip, sizeof(ip_buf));
} else {
switch_find_local_ip(ip_buf, sizeof(ip_buf), AF_INET);
switch_find_local_ip(ip_buf, sizeof(ip_buf), NULL, AF_INET);
}
switch_core_new_memory_pool(&pool);
+1 -1
View File
@@ -172,7 +172,7 @@ SWITCH_STANDARD_APP(bcast_function)
if ((var = switch_channel_get_variable(channel, "esf_broadcast_ip"))) {
esf_broadcast_ip = switch_core_session_strdup(session, var);
} else {
switch_find_local_ip(guess_ip, sizeof(guess_ip), AF_INET);
switch_find_local_ip(guess_ip, sizeof(guess_ip), NULL, AF_INET);
esf_broadcast_ip = guess_ip;
}