switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "%s Text thread started.\n", switch_channel_get_name(session->channel));
- switch_core_session_write_text_frame(session, &cr_frame, 0, 0);
+ if (!switch_channel_test_flag(channel, CF_MSRP)) {
+ switch_core_session_write_text_frame(session, &cr_frame, 0, 0);
+ }
while (switch_channel_up_nosig(channel)) {
switch_channel_set_flag(session->channel, CF_HAS_TEXT);
switch_channel_set_flag(session->channel, CF_TEXT_POSSIBLE);
+ switch_channel_set_flag(session->channel, CF_TEXT_LINE_BASED);
switch_channel_set_flag(session->channel, CF_MSRP);
if (want_msrps) {