]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
dont pre_answer after actual answer
authorBrian West <brian@freeswitch.org>
Mon, 10 Jul 2006 19:51:19 +0000 (19:51 +0000)
committerBrian West <brian@freeswitch.org>
Mon, 10 Jul 2006 19:51:19 +0000 (19:51 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1814 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_channel.c

index 599dfca64efdd00e557b63f721bb26b12b2fdb23..9ac3b376ba073b14625de736d16964131245a8b9 100644 (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);