Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c (15791 => 15792)
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c 2009-12-04 20:32:56 UTC (rev 15791)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c 2009-12-04 20:40:53 UTC (rev 15792)
@@ -815,7 +815,7 @@
}
- 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 @@
}
- 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);