提交 3a71f862 authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-3842 --resolve I think these feilds were recently only made optional when…

FS-3842 --resolve I think these feilds were recently only made optional when register=true. This should take care of it.
上级 cd3452d6
......@@ -2518,6 +2518,14 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag)
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "ERROR: password param is REQUIRED!\n");
goto skip;
}
} else {
if (zstr(username)) {
username = "FreeSWITCH";
}
if (zstr(password)) {
password = "";
}
}
if (zstr(from_user)) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论