]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8625 #resolve [Segmentation fault: 11]
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 8 Dec 2015 17:18:07 +0000 (11:18 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 8 Dec 2015 17:18:07 +0000 (11:18 -0600)
src/mod/endpoints/mod_dingaling/mod_dingaling.c

index 9ab1c072f568f752a10e059a9aa1f598c52ed941..9e952f2196b2e489916ccf038c91a716d9c05547 100644 (file)
@@ -1931,6 +1931,8 @@ static switch_status_t channel_on_init(switch_core_session_t *session)
        struct private_object *tech_pvt = NULL;
        switch_status_t status = SWITCH_STATUS_SUCCESS;
 
+       switch_channel_set_variable(channel, "jitterbuffer_msec", "1p");
+
        tech_pvt = switch_core_session_get_private(session);
        switch_assert(tech_pvt != NULL);
 
@@ -2383,12 +2385,6 @@ static switch_status_t channel_receive_message(switch_core_session_t *session, s
        case SWITCH_MESSAGE_INDICATE_ANSWER:
                channel_answer_channel(session);
                break;
-       case SWITCH_MESSAGE_INDICATE_BRIDGE:
-               rtp_flush_read_buffer(tech_pvt->transports[LDL_TPORT_RTP].rtp_session, SWITCH_RTP_FLUSH_STICK);
-               break;
-       case SWITCH_MESSAGE_INDICATE_UNBRIDGE:
-               rtp_flush_read_buffer(tech_pvt->transports[LDL_TPORT_RTP].rtp_session, SWITCH_RTP_FLUSH_UNSTICK);
-               break;
        case SWITCH_MESSAGE_INDICATE_STUN_ERROR:
                //switch_channel_hangup(switch_core_session_get_channel(session), SWITCH_CAUSE_NORMAL_CLEARING);
                break;