From: Brian West Date: Mon, 10 Jul 2006 19:51:19 +0000 (+0000) Subject: dont pre_answer after actual answer X-Git-Tag: v1.0-beta1~2544 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d99c1605a100f47b3138e319620fb564f630e073;p=thirdparty%2Ffreeswitch.git dont pre_answer after actual answer git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1814 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- 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);