git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9871 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2008-10-07 04:42:35 +00:00
parent ff3f04f15d
commit 640803006e

View File

@ -909,7 +909,7 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag)
gateway->retry_seconds = atoi(retry_seconds); gateway->retry_seconds = atoi(retry_seconds);
if (gateway->retry_seconds < 10) { if (gateway->retry_seconds < 10) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "INVALID: retry-seconds of %d on gateway %s correcting the value to 30\n", switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "invalid retry-seconds of %d on gateway %s, using the value of 30 instead.\n",
gateway->retry_seconds, name); gateway->retry_seconds, name);
gateway->retry_seconds = 30; gateway->retry_seconds = 30;
} }
@ -954,7 +954,7 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag)
gateway->expires_str = switch_core_strdup(gateway->pool, expire_seconds); gateway->expires_str = switch_core_strdup(gateway->pool, expire_seconds);
if ((gateway->freq = atoi(gateway->expires_str)) < 5) { if ((gateway->freq = atoi(gateway->expires_str)) < 5) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "INVALID: register-frequency of %d on gateway %s to 3600\n", switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Invalid register-frequency of %d on gateway %s, using the value of 3600 instead\n",
gateway->freq, name); gateway->freq, name);
gateway->freq = 3600; gateway->freq = 3600;
} }
@ -4067,7 +4067,7 @@ static void set_variable_sip_param(switch_channel_t *channel, char *header_type,
/* sh now points to the NULL at the end of the partially built */ /* sh now points to the NULL at the end of the partially built */
/* sip_header_name variable. This is also the start of the */ /* sip_header_name variable. This is also the start of the */
/* variable part of the sip_header_name built from the lvalue */ /* variable part of the sip_header_name built from the lvalue */
/* of the parms data. */ /* of the params data. */
sh_save = sh; sh_save = sh;
while (params && params[0]) { while (params && params[0]) {
@ -4079,8 +4079,8 @@ static void set_variable_sip_param(switch_channel_t *channel, char *header_type,
*sh = *cp; *sh = *cp;
} }
/* cp now points to either the end of the parms data or the */ /* cp now points to either the end of the params data or the */
/* equal (=) sign spearating the lvalue and rvalue. */ /* equal (=) sign separating the lvalue and rvalue. */
if (*cp == '=') if (*cp == '=')
cp++; cp++;
*sh = '\0'; *sh = '\0';