/***************************************************
   1. Create MO call
   2. Send DTMF tone string
   3. Disconnect call
***************************************************/

[StifSettings]
CheckHeapBalance= on
[EndStifSettings]

[Test]
title 5.2 DTMF, Tone String
timeout 10000
create ccetester test
test Delay 500

// 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 SendDtmfToneString 0 12
test WaitEvent DtmfSequenceStart 0 1
test WaitEvent DtmfSequenceStop 0 1
test WaitEvent DtmfSequenceStart 0 2
test WaitEvent DtmfSequenceStop 0 2
test WaitEvent DtmfStringSendCompleted 0 0

// Step 3
print Step_3

test HangUp 1 0
test WaitEvent 1 Disconnecting
test WaitEvent 1 Idle
test Release 1 0

test VerifyTest
delete test
[Endtest] 
