]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
do not queue messages to the session when they are in bypass mode
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 17 Aug 2011 23:42:48 +0000 (18:42 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 17 Aug 2011 23:42:48 +0000 (18:42 -0500)
src/mod/endpoints/mod_sofia/sofia.c

index f7fbacff1a082120e0965fc66e4fac71d0a5228e..6891562e11f969931c0632683b429bbe6bff83a2 100644 (file)
@@ -1257,8 +1257,9 @@ void sofia_event_callback(nua_event_t event,
 
                if (!zstr(sofia_private->uuid)) {
                        if ((session = switch_core_session_locate(sofia_private->uuid))) {
-                               
-                               if (switch_core_session_running(session)) {
+                               switch_channel_t *channel = switch_core_session_get_channel(session);
+
+                               if (switch_core_session_running(session) && !switch_channel_test_flag(channel, CF_PROXY_MODE)) {
                                        switch_core_session_queue_signal_data(session, de);
                                } else {
                                        switch_core_session_message_t msg = { 0 };