]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3842 --resolve I think these feilds were recently only made optional when register...
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 27 Jan 2012 15:10:18 +0000 (09:10 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 27 Jan 2012 15:10:18 +0000 (09:10 -0600)
src/mod/endpoints/mod_sofia/sofia.c

index 6d6c378beb99136044b3232fd7c967747b0ddc1f..f0bed07d851cacb387535457d40dd1f419778203 100644 (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)) {