]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4905
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 11 Dec 2012 13:58:09 +0000 (07:58 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 11 Dec 2012 13:58:09 +0000 (07:58 -0600)
src/include/switch_types.h
src/mod/endpoints/mod_sofia/sofia_glue.c

index c6dfb4376c19a2882aaf4a9a75349ceed3dc160b..56df24a743a63dad254c5f7c82289ecb4a82e181 100644 (file)
@@ -736,13 +736,18 @@ typedef enum {
 
         */
 
-       RTP_BUG_CHANGE_SSRC_ON_MARKER = (1 << 9)
+       RTP_BUG_CHANGE_SSRC_ON_MARKER = (1 << 9),
 
        /*
          By default FS will change the SSRC when the marker is set and it detects a timestamp reset.
          If this setting is enabled it will NOT do this (old behaviour).
         */
 
+       RTP_BUG_FLUSH_JB_ON_DTMF = (1 << 10)
+       
+       /* FLUSH JITTERBUFFER When getting RFC2833 to reduce bleed through */
+
+
 } switch_rtp_bug_flag_t;
 
 #ifdef _MSC_VER
index 4ba22c25ddbf13021e4a316b8fc1fc8a7bdf28c0..0c8bc11180d3c58872af25844fe755ae420239bc 100644 (file)
@@ -6975,6 +6975,14 @@ void sofia_glue_parse_rtp_bugs(switch_rtp_bug_flag_t *flag_pole, const char *str
        if (switch_stristr("~CHANGE_SSRC_ON_MARKER", str)) {
                *flag_pole &= ~RTP_BUG_CHANGE_SSRC_ON_MARKER;
        }
+
+       if (switch_stristr("FLUSH_JB_ON_DTMF", str)) {
+               *flag_pole |= RTP_BUG_FLUSH_JB_ON_DTMF;
+       }
+
+       if (switch_stristr("~FLUSH_JB_ON_DTMF", str)) {
+               *flag_pole &= ~RTP_BUG_FLUSH_JB_ON_DTMF;
+       }
 }
 
 char *sofia_glue_gen_contact_str(sofia_profile_t *profile, sip_t const *sip, nua_handle_t *nh, sofia_dispatch_event_t *de, sofia_nat_parse_t *np)