/*******************************************************
   1. Create two PS calls
   2. Creates conference from plug-in
   3. Hang up conference
*******************************************************/

[StifSettings]
CheckHeapBalance= on
[EndStifSettings]

[Test]
title 9.13.2 Conference Call, plugin created
timeout 5000
create ccetester test
test Delay 1000

// Step 1
print Step_1

test OpenNewCall 1 0 5050505355 1 ECCECallTypeCSVoice ECCELineTypePrimary
test Dial 1 0 SubAddress Bearer
test WaitEvent 1 Dialling
test WaitEvent 1 Connecting
test WaitEvent 1 Connected

test Hold 1 0
test WaitEvents 1 Hold, 1 LocalHold

test OpenNewCall 2 0 142141244155 1 ECCECallTypeCSVoice ECCELineTypePrimary
test Dial 2 0 SubAddress Bearer
test WaitEvent 2 Dialling
test WaitEvent 2 Connecting
test WaitEvent 2 Connected

// Step 2
print Step_2

test SendPluginRequest 2 CreateConferenceCall
// ConferenceActive state is not notified (no observer)
test WaitEvents 1 Connected, ConferenceCallCreated

// Step 3
print Step_3

test HangupConference 0
test WaitEvents ConferenceCallRemoved 1, ConferenceCallRemoved 2, ConferenceIdle, 1 Disconnecting, 1 Idle, 2 Disconnecting, 2 Idle
test ReleaseConference 0

test VerifyTest
delete test
[Endtest]
