From 049be82ae860228b30acd9b94755e66d0e75f721 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 26 Jan 2012 16:54:09 -0600 Subject: [PATCH] FS-2216 found one bug that is 4 years old from commit 205cf0534f4c4c5a8ebccb2446a01ed0df100abb --- src/mod/endpoints/mod_sofia/sofia.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 1235ff3132..6d6c378beb 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -3436,14 +3436,14 @@ switch_status_t reconfig_sofia(sofia_profile_t *profile) sofia_clear_pflag(profile, PFLAG_OPTIONS_RESPOND_503_ON_BUSY); } } else if (!strcasecmp(var, "sip-force-expires")) { - uint32_t sip_force_expires = atoi(val); + int32_t sip_force_expires = atoi(val); if (sip_force_expires >= 0) { profile->sip_force_expires = sip_force_expires; } else { profile->sip_force_expires = 0; } } else if (!strcasecmp(var, "sip-expires-max-deviation")) { - uint32_t sip_expires_max_deviation = atoi(val); + int32_t sip_expires_max_deviation = atoi(val); if (sip_expires_max_deviation >= 0) { profile->sip_expires_max_deviation = sip_expires_max_deviation; } else { @@ -4497,14 +4497,14 @@ switch_status_t config_sofia(int reload, char *profile_name) sofia_clear_pflag(profile, PFLAG_OPTIONS_RESPOND_503_ON_BUSY); } } else if (!strcasecmp(var, "sip-force-expires")) { - uint32_t sip_force_expires = atoi(val); + int32_t sip_force_expires = atoi(val); if (sip_force_expires >= 0) { profile->sip_force_expires = sip_force_expires; } else { profile->sip_force_expires = 0; } } else if (!strcasecmp(var, "sip-expires-max-deviation")) { - uint32_t sip_expires_max_deviation = atoi(val); + int32_t sip_expires_max_deviation = atoi(val); if (sip_expires_max_deviation >= 0) { profile->sip_expires_max_deviation = sip_expires_max_deviation; } else { @@ -5802,7 +5802,7 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status, sofia_set_flag_locked(tech_pvt, TFLAG_3PCC); //sofia_glue_tech_choose_port(tech_pvt, 0); //sofia_glue_set_local_sdp(tech_pvt, NULL, 0, NULL, 0); - switch_channel_set_flag(channel, TFLAG_LATE_NEGOTIATION); + sofia_set_flag(tech_pvt, TFLAG_LATE_NEGOTIATION); //Moves into CS_INIT so call moves forward into the dialplan switch_channel_set_state(channel, CS_INIT); } else {