From d99c1605a100f47b3138e319620fb564f630e073 Mon Sep 17 00:00:00 2001 From: Brian West Date: Mon, 10 Jul 2006 19:51:19 +0000 Subject: [PATCH] dont pre_answer after actual answer git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1814 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_channel.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/switch_channel.c b/src/switch_channel.c index 599dfca64e..9ac3b376ba 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -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);