提交 b68a3f97 authored 作者: Brian West's avatar Brian West

if the string is empty lets use the guessed ip instead.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9457 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 fb9e85df
......@@ -1524,7 +1524,9 @@ switch_status_t config_sofia(int reload, char *profile_name)
switch_copy_string(stun_ip, ip, sizeof(stun_ip));
if (!strcasecmp(val, "0.0.0.0")) {
if (!switch_strlen_zero(val)) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid IP replaced with %s\n", mod_sofia_globals.guess_ip);
} else if (!strcasecmp(val, "0.0.0.0")) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Invald IP 0.0.0.0 replaced with %s\n", mod_sofia_globals.guess_ip);
} else if (strcasecmp(val, "auto")) {
switch_port_t port = 0;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论