]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
force marked answer on dingaling outbound calls when accept is received
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 18 Mar 2010 18:48:58 +0000 (18:48 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 18 Mar 2010 18:48:58 +0000 (18:48 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@17043 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_dingaling/mod_dingaling.c

index 50f14090abfe9a7b8605f4fa79c992a24be757d2..377bbe1c0ed99ed1c7331d795bb379e622d03db2 100644 (file)
@@ -1185,6 +1185,9 @@ static switch_status_t channel_on_init(switch_core_session_t *session)
        switch_set_flag(tech_pvt, TFLAG_READY);
 
        if (negotiate_media(session) == SWITCH_STATUS_SUCCESS) {
+               if (switch_channel_direction(channel) == SWITCH_CALL_DIRECTION_OUTBOUND) {
+                       switch_channel_mark_answered(channel);
+               }
                /* Move channel's state machine to ROUTING */
                switch_channel_set_state(channel, CS_ROUTING);
        }