/***********************************************************
	1. Create MO call
	2. Create Emergency call (MO call is disconnected)
	3. Disconnect emergency call
************************************************************/

[StifSettings]
CheckHeapBalance= on
[EndStifSettings]

[Test]
title 4.2 Emergency Call during call
timeout 6000
create ccetester test
test Delay 1000

// Step 1
print Step_1

test OpenNewCall 1 0 NormalCallPS 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 InitializeEmergencyCall 2 0

test DialEmergencyCall 2 EmergencyNumber
// Emergency call disconnects other calls
test WaitEvents 1 Disconnecting, 1 Idle, 2 Dialling, 2 Connecting, 2 Connected

// Step 3
print Step_3

test Release 1 0

test HangUp 2 0
test WaitEvent 2 Disconnecting
test WaitEvent 2 Idle
test Release 2 0

test VerifyTest
delete test
[Endtest]
