/**************************************
  1. Create MO PS call
  2. Try to resume connected call
  3. Try to hold held call
  4. Resume call held by remote
  5. Try to Hold and resume after hangup  
	6. Release call
***************************************/

[StifSettings]
CheckHeapBalance= on
[EndStifSettings]

[Test]
title 2.2.4 Hold & Resume, Error
timeout 10000
create ccetester test
test Delay 1000

// 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 Resume 1 -11

// Step 3
print Step_3

test Hold 1 0
test WaitEvents 1 Hold, 1 LocalHold

test Hold 1 -11

// Step 4
print Step_4

test Resume 1 0
test WaitEvents 1 Connected, 1 LocalResume

test SendPluginRequest RemoteHold 1
test WaitEvent 1 RemoteHold

test Resume 1 -11

// Step 5
print Step_5

test HangUp 1 0
test WaitEvent 1 Disconnecting //event 10
test WaitEvent 1 Idle

test Hold 1 -18
test Resume 1 -18

// Step 6
print Step_6

test Release 1 0

test VerifyTest
delete test
[Endtest]
