switch_channel_set_flag(channel, CF_BREAK);
}
+ switch_channel_audio_sync(channel);
}
} else if (cmd_hash == CMD_UNICAST) {
char *local_ip = switch_event_get_header(event, "local-ip");
switch_channel_set_caller_profile(channel, new_profile);
switch_channel_set_state(channel, CS_ROUTING);
+ switch_channel_audio_sync(channel);
msg.message_id = SWITCH_MESSAGE_INDICATE_TRANSFER;
msg.from = __FILE__;
switch_channel_set_flag_recursive(caller_channel, CF_BRIDGE_ORIGINATOR);
switch_channel_clear_flag(peer_channel, CF_BRIDGE_ORIGINATOR);
- //switch_channel_audio_sync(caller_channel);
- //switch_channel_audio_sync(peer_channel);
+ switch_channel_audio_sync(caller_channel);
+ switch_channel_audio_sync(peer_channel);
b_leg->session = peer_session;
switch_copy_string(b_leg->b_uuid, switch_core_session_get_uuid(session), sizeof(b_leg->b_uuid));
switch_cond_next();
}
- //switch_channel_audio_sync(bchan);
+ switch_channel_audio_sync(bchan);
- //if (caller_channel) {
- // switch_channel_audio_sync(caller_channel);
- //}
+ if (caller_channel) {
+ switch_channel_audio_sync(caller_channel);
+ }
}
if (oglobals.session) {
rtp_session->ready = 2;
rtp_session->rx_host = switch_core_strdup(rtp_session->pool, rx_host);
rtp_session->rx_port = rx_port;
- //switch_set_flag_locked(rtp_session, SWITCH_RTP_FLAG_FLUSH);
+ switch_set_flag_locked(rtp_session, SWITCH_RTP_FLAG_FLUSH);
} else {
switch_rtp_release_port(rx_host, rx_port);
}
if (!switch_test_flag(rtp_session, SWITCH_RTP_FLAG_PROXY_MEDIA) &&
!switch_test_flag(rtp_session, SWITCH_RTP_FLAG_VIDEO)) {
-
+ switch_set_flag(rtp_session, SWITCH_RTP_FLAG_FLUSH);
+
switch (flush) {
case SWITCH_RTP_FLUSH_STICK:
switch_set_flag_locked(rtp_session, SWITCH_RTP_FLAG_STICKY_FLUSH);
if (switch_rtp_ready(rtp_session)) {
bytes = sizeof(rtp_msg_t);
switch_socket_recvfrom(rtp_session->from_addr, rtp_session->sock_input, 0, (void *) &rtp_session->recv_msg, &bytes);
+
if (bytes) {
int do_cng = 0;