dont pre_answer after actual answer

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1814 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2006-07-10 19:51:19 +00:00
parent cdac907624
commit d99c1605a1
1 changed files with 4 additions and 0 deletions

View File

@ -849,6 +849,10 @@ SWITCH_DECLARE(switch_status_t) switch_channel_perform_pre_answer(switch_channel
return SWITCH_STATUS_FALSE;
}
if (switch_channel_test_flag(channel, CF_ANSWERED)) {
return SWITCH_STATUS_SUCCESS;
}
msg.message_id = SWITCH_MESSAGE_INDICATE_PROGRESS;
msg.from = channel->name;
status = switch_core_session_message_send(uuid, &msg);