From acc5f20ae1fc6013b90a88524a270739637a4342 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 18 Mar 2010 18:48:58 +0000 Subject: [PATCH] force marked answer on dingaling outbound calls when accept is received git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@17043 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_dingaling/mod_dingaling.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mod/endpoints/mod_dingaling/mod_dingaling.c b/src/mod/endpoints/mod_dingaling/mod_dingaling.c index 50f14090ab..377bbe1c0e 100644 --- a/src/mod/endpoints/mod_dingaling/mod_dingaling.c +++ b/src/mod/endpoints/mod_dingaling/mod_dingaling.c @@ -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); }