From 3a71f862095c5c91e9eb743f9ce4e6c4a66394b9 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 27 Jan 2012 09:10:18 -0600 Subject: [PATCH] FS-3842 --resolve I think these feilds were recently only made optional when register=true. This should take care of it. --- src/mod/endpoints/mod_sofia/sofia.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 6d6c378beb..f0bed07d85 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -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)) {