mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-08 12:34:53 +00:00
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:
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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user