]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
typo
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 4 Nov 2010 19:38:43 +0000 (14:38 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 4 Nov 2010 19:38:43 +0000 (14:38 -0500)
src/mod/endpoints/mod_sofia/sofia.c

index c29c35185f54e03f3520cdb014a846536d34e90f..7cb4c5b528e2e92c2d4b2d0ffaa92ad644d292e6 100644 (file)
@@ -2093,10 +2093,10 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag)
 
                        gateway->reg_timeout_seconds = atoi(timeout_seconds);
 
-                       if (gateway->retry_seconds < 5) {
+                       if (gateway->reg_timeout_seconds < 5) {
                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Invalid timeout-seconds of %d on gateway %s, using the value of 60 instead.\n",
                                                                  gateway->reg_timeout_seconds, name);
-                               gateway->reg_timeout_seconds = 30;
+                               gateway->reg_timeout_seconds = 60;
                        }