From: Anthony Minessale Date: Sat, 25 Apr 2009 14:17:39 +0000 (+0000) Subject: pass flush indications across to the b leg X-Git-Tag: v1.0.4~1053 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61e9cb999988b7c611cffbf3ae324031d46d33da;p=thirdparty%2Ffreeswitch.git pass flush indications across to the b leg git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13146 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_loopback/mod_loopback.c b/src/mod/endpoints/mod_loopback/mod_loopback.c index c1245b14bf..f3c001d1b7 100644 --- a/src/mod/endpoints/mod_loopback/mod_loopback.c +++ b/src/mod/endpoints/mod_loopback/mod_loopback.c @@ -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: