]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
up
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 5 Oct 2007 18:00:33 +0000 (18:00 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 5 Oct 2007 18:00:33 +0000 (18:00 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5820 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index cae7bf5556e9ba15e9cdf59dbcac06f260621dc4..9597b421f092c68299608d872a64da36a2d98685 100644 (file)
@@ -1097,7 +1097,7 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status,
        }
        
 
-       if (channel && (status == 180 || status == 183)) {
+       if (channel && (status == 180 || status == 183) && switch_channel_test_flag(channel, CF_OUTBOUND)) {
                char *val;
                if ((val = switch_channel_get_variable(channel, "sip_auto_answer")) && switch_true(val)) {
                        nua_notify(nh, NUTAG_NEWSUB(1), NUTAG_SUBSTATE(nua_substate_active), SIPTAG_EVENT_STR("talk"), TAG_END());