]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add sip_jitter_buffer_during_bridge which you can set to true to keep a jitter buffer...
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 3 Mar 2011 01:09:10 +0000 (19:09 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 3 Mar 2011 01:11:29 +0000 (19:11 -0600)
src/mod/endpoints/mod_sofia/mod_sofia.c

index e8e78e51f5aace88ce5c71422bfccf360a7e3aa0..5c05efff988f2d46f7422a9a3fee534f1c51cba7 100644 (file)
@@ -1444,10 +1444,11 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
 
        case SWITCH_MESSAGE_INDICATE_BRIDGE:
                {
+                       const char *var = switch_channel_get_variable(tech_pvt->channel, "sip_jitter_buffer_during_bridge");                    
 
                        sofia_glue_tech_simplify(tech_pvt);
                        
-                       if (switch_rtp_ready(tech_pvt->rtp_session)) {
+                       if (switch_false(var) && switch_rtp_ready(tech_pvt->rtp_session)) {
                                const char *val;
                                int ok = 0;