From: Anthony Minessale Date: Fri, 4 Dec 2009 20:40:53 +0000 (+0000) Subject: try this jlenk X-Git-Tag: v1.0.6~1159 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=625defb1f20ddb3ff14a73fdfd38812394027e7c;p=thirdparty%2Ffreeswitch.git try this jlenk git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15792 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 496c455565..ae4bfe3e78 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -815,7 +815,7 @@ static switch_status_t sofia_read_frame(switch_core_session_t *session, switch_f } - if (tech_pvt->last_codec_ms && tech_pvt->last_codec_ms != codec_ms) { + if (tech_pvt->last_codec_ms && tech_pvt->last_codec_ms == codec_ms) { tech_pvt->mismatch_count++; } @@ -886,7 +886,7 @@ static switch_status_t sofia_read_frame(switch_core_session_t *session, switch_f } - tech_pvt->check_frames = 0; + tech_pvt->check_frames = MAX_CODEC_CHECK_FRAMES; tech_pvt->last_ts = 0; /* inform them of the codec they are actually sending */ sofia_glue_do_invite(session);