]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
autoflush durning bridge in dingaling
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 19 Oct 2011 17:05:54 +0000 (12:05 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 19 Oct 2011 17:05:54 +0000 (12:05 -0500)
src/mod/endpoints/mod_dingaling/mod_dingaling.c

index 09c4a8f100a906d71e3ae56e986bbc06b5130702..7de70de36ed761637af54034e7a0e67ea852b11a 100644 (file)
@@ -1603,8 +1603,10 @@ static switch_status_t channel_receive_message(switch_core_session_t *session, s
                channel_answer_channel(session);
                break;
        case SWITCH_MESSAGE_INDICATE_BRIDGE:
+               rtp_flush_read_buffer(tech_pvt->rtp_session, SWITCH_RTP_FLUSH_STICK);
                break;
        case SWITCH_MESSAGE_INDICATE_UNBRIDGE:
+               rtp_flush_read_buffer(tech_pvt->rtp_session, SWITCH_RTP_FLUSH_UNSTICK);
                break;
        default:
                break;