From: Anthony Minessale Date: Wed, 17 Aug 2011 23:42:48 +0000 (-0500) Subject: do not queue messages to the session when they are in bypass mode X-Git-Tag: v1.2-rc1~51^2~266^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bab3289ff3d05260521ac36bd956cded693fe80f;p=thirdparty%2Ffreeswitch.git do not queue messages to the session when they are in bypass mode --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index f7fbacff1a..6891562e11 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -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 };