Author: anthm Date: Sat Apr 25 09:17:39 2009 New Revision: 13146 Log: pass flush indications across to the b leg Modified: freeswitch/trunk/src/mod/endpoints/mod_loopback/mod_loopback.c Modified: freeswitch/trunk/src/mod/endpoints/mod_loopback/mod_loopback.c ============================================================================== --- freeswitch/trunk/src/mod/endpoints/mod_loopback/mod_loopback.c (original) +++ freeswitch/trunk/src/mod/endpoints/mod_loopback/mod_loopback.c Sat Apr 25 09:17:39 2009 @@ -702,6 +702,11 @@ 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: