[Freeswitch-svn] [commit] r13146 - freeswitch/trunk/src/mod/endpoints/mod_loopback
FreeSWITCH SVN
anthm at freeswitch.org
Sat Apr 25 07:17:39 PDT 2009
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:
More information about the Freeswitch-svn
mailing list