FS-3842 --resolve I think these feilds were recently only made optional when register=true. This should take care of it.

This commit is contained in:
Anthony Minessale 2012-01-27 09:10:18 -06:00
parent cd3452d668
commit 3a71f86209

View File

@ -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)) {