pass flush indications across to the b leg

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13146 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-04-25 14:17:39 +00:00
parent 5adbb63da1
commit 61e9cb9999

View File

@ -702,6 +702,11 @@ static switch_status_t channel_receive_message(switch_core_session_t *session, s
switch_frame_t *frame = (switch_frame_t *) pop;
switch_frame_free(&frame);
}
/* avoid endless loop by not forwarding it when it came from this same place */
if (tech_pvt->other_session && strcmp(msg->_file, __FILE__)) {
/* pass message over to the other leg */
switch_core_session_receive_message(tech_pvt->other_session, msg);
}
}
break;
default: