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
This commit is contained in:
Anthony Minessale 2010-03-18 18:48:58 +00:00
parent 37b413bff1
commit acc5f20ae1
1 changed files with 3 additions and 0 deletions

View 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);
}