mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-04 06:36:09 +00:00
only require user and pass in gateway when register is true
This commit is contained in:
parent
9e09483589
commit
9e4ca2c2a7
@ -2416,14 +2416,16 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (zstr(username)) {
|
if (switch_true(register_str)) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "ERROR: username param is REQUIRED!\n");
|
if (zstr(username)) {
|
||||||
goto skip;
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "ERROR: username param is REQUIRED!\n");
|
||||||
}
|
goto skip;
|
||||||
|
}
|
||||||
|
|
||||||
if (zstr(password)) {
|
if (zstr(password)) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "ERROR: password param is REQUIRED!\n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "ERROR: password param is REQUIRED!\n");
|
||||||
goto skip;
|
goto skip;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (zstr(from_user)) {
|
if (zstr(from_user)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user