]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
pass flush indications across to the b leg
authorAnthony Minessale <anthony.minessale@gmail.com>
Sat, 25 Apr 2009 14:17:39 +0000 (14:17 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Sat, 25 Apr 2009 14:17:39 +0000 (14:17 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13146 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_loopback/mod_loopback.c

index c1245b14bf535134815c582c8022321d4c9e0615..f3c001d1b79f7ecdfa698d099d5e36c0cb291b19 100644 (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: