/**************************************
	1. Create MO PS call
	2. Hold call
	3. Disconnect call
***************************************/

[StifSettings]
CheckHeapBalance= on
[EndStifSettings]

[Test]
title 2.2.1 Hold
timeout 20000
create ccetester test
test Delay 1000

test ExpectMediatorEvent 1 ECCECallTypePS Dialling 2 MoCall
test ExpectMediatorEvent 1 ECCECallTypePS Connecting 2 MoCall
test ExpectMediatorEvent 1 ECCECallTypePS Connected 2 MoCall
test ExpectMediatorEvent 1 ECCECallTypePS Hold 2 MoCall
test ExpectMediatorEvent 1 ECCECallTypePS Disconnecting 2 MoCall


// Step 1
print Step_1

test OpenNewCall 1 0 Recipient@172.23.123.29 2 ECCECallTypePS ECCELineTypePrimary
test Dial 1 0 SubAddress Bearer
test WaitEvent 1 Dialling
test WaitEvent 1 Connecting
test WaitEvent 1 Connected

// Step 2
print Step_2

test Hold 1 0

// events 4-5
// WaitEvents accepts listed events in any order
test WaitEvents 1 Hold, 1 LocalHold

// Step 3
print Step_3

test HangUp 1 0

test WaitEvent 1 Disconnecting
test WaitEvent 1 Idle

test Release 1 0

test VerifyTest
test Delay 3000
test VerifyMediatorEvents
delete test
[Endtest]
