telephonyserverplugins/multimodetsy/test/Te_LoopBack/Te_LoopBackCUnsolicited.h
author Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
Thu, 06 May 2010 15:10:38 +0100
branchopencode
changeset 24 6638e7f4bd8f
parent 0 3553901f7fa8
permissions -rw-r--r--
opencode
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
24
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
     1
// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
     2
// All rights reserved.
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
     3
// This component and the accompanying materials are made available
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
     4
// under the terms of "Eclipse Public License v1.0"
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
     5
// which accompanies this distribution, and is available
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
     7
//
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
     8
// Initial Contributors:
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
     9
// Nokia Corporation - initial contribution.
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    10
//
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    11
// Contributors:
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    12
//
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    13
// Description:
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    14
// This file has the class definitions and scripts for the "Unsolicited Messages" Test in 
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    15
// the ETel Regression test harness.
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    16
// The call scripts are processed and handled by the emulator side of the test via the
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    17
// scripting engine.  Each line in the script represents an action that the emulator must
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    18
// take, either a receive action (which defines an expected string) or a transmit action with the
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    19
// ASCII data to be sent.  See the description of the scripting language for more information.
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    20
// 
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    21
//
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    22
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    23
/**
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    24
 @file
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    25
 @internalComponent 
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    26
*/
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    27
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    28
#ifndef __CUNSOLICITED__H__
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    29
#define __CUNSOLICITED__H__
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    30
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    31
#include "Te_LoopbackTestStepBase.h"
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    32
#include "Te_LoopBackScriptEng.h"
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    33
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    34
//
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    35
// First a Script where everything is in order
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    36
//
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    37
const struct TScript KCUnsolicitedScript[]= {	 
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    38
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    39
	//*******************************************************************
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    40
	// Injecting Unsolicited messages into every query-response state
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    41
	// +CMT: and +CMTI: SMS messages should be silenced by AT+CNMI=0,0
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    42
	//*******************************************************************
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    43
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    44
	//	Start of initialization sequence **********************************************
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    45
	{	ERxString,	(TText8*)"AT\r",								0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    46
/**/{	ETxString, (TText8*)"+CRING: VOICE\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    47
/**/{	ETxString, (TText8*)"+CRING: SYNC\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    48
/**/{	ETxString, (TText8*)"+CRING: VOICE/REL SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    49
/**/{	ETxString, (TText8*)"+CRING: ALT VOICE/SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    50
/**/{	ETxString, (TText8*)"+CRING: VOICE/ASYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    51
/**/{	ETxString, (TText8*)"+CRING: VOICE/REL SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    52
/**/{	ETxString, (TText8*)"+CRING: ALT VOICE/SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    53
/**/{	ETxString, (TText8*)"+CRING: ALT VOICE/REL ASYNC\r",		0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    54
/**/{	ETxString, (TText8*)"+CRING: ALT REL ASYNC/VOICE\r",		0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    55
/**/{	ETxString, (TText8*)"+CRING: ALT REL ASYNC/REL ASYNC\r",	0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    56
/**/{	ETxString, (TText8*)"+CRING: ALT VOICE/FAX\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    57
	{	ETxStringOK, NULL,											0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    58
	{	EIfRxStringRelativeJmp, (TText8*)"AT\r",	-1, 0	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    59
	{	ERxString, (TText8*)"AT+FCLASS=?",							0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    60
/**/{	ETxString, (TText8*)"+CRING: FAX\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    61
/**/{	ETxString, (TText8*)"+CREG: 2,3\r",							0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    62
/**/{	ETxString, (TText8*)"+CRING: VOICE\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    63
	{	ETxString, (TText8*)"0,1,2\r",								0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    64
	{	ETxStringOK, NULL,											0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    65
	{	ERxString, (TText8*)"AT",									0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    66
	{	ETxStringOK, NULL,											0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    67
	{	ERxString, (TText8*)"AT+CNMI=,0",							0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    68
	{	ETxStringOK, NULL,											0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    69
	{	ERxString, (TText8*)"ATS7?",								0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    70
/**/{	ETxString, (TText8*)"+CREG: 2,4\r",							0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    71
/**/{	ETxString, (TText8*)"+CRING: VOICE\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    72
/**/{	ETxString, (TText8*)"+CRING: SYNC\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    73
/**/{	ETxString, (TText8*)"+CRING: ASYNC\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    74
/**/{	ETxString, (TText8*)"+CRING: REL SYNC\r",					0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    75
/**/{	ETxString, (TText8*)"+CRING: REL ANYNC\r",					0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    76
/**/{	ETxString, (TText8*)"+CRING: VOICE/ASYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    77
/**/{	ETxString, (TText8*)"+CREG: 2,3\r",							0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    78
/**/{	ETxString, (TText8*)"+CRING: VOICE/REL SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    79
/**/{	ETxString, (TText8*)"+CRING: ALT VOICE/SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    80
/**/{	ETxString, (TText8*)"+CRING: ALT VOICE/REL ASYNC\r",		0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    81
/**/{	ETxString, (TText8*)"+CREG: 4,4\r",							0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    82
/**/{	ETxString, (TText8*)"+CRING: ALT REL ASYNC/VOICE\r",		0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    83
/**/{	ETxString, (TText8*)"+CRING: ALT REL ASYNC/REL ASYNC\r",	0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    84
/**/{	ETxString, (TText8*)"+CRING: ALT VOICE/FAX\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    85
	{	ETxString, (TText8*)"050\r",								0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    86
	{	ETxStringOK, NULL,											0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    87
	{	ERxString, (TText8*)"ATS0=0",								0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    88
/**/{	ETxString, (TText8*)"+CRING: VOICE\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    89
	{	ETxStringOK, NULL,											0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    90
	{	ERxString, (TText8*)"AT+CGMI",								0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    91
/**/{	ETxString, (TText8*)"+CRING: VOICE\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    92
/**/{	ETxString, (TText8*)"+CREG: 2,3\r",							0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    93
/**/{	ETxString, (TText8*)"+CRING: VOICE/REL SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    94
/**/{	ETxString, (TText8*)"+CRING: ALT VOICE/SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    95
/**/{	ETxString, (TText8*)"+CRING: FAX\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    96
	{	ETxString, (TText8*)"ERICSSON\r",							0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    97
	{	ETxStringOK, NULL,											0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    98
	{	ERxString, (TText8*)"AT+CGMM",								0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
    99
/**/{	ETxString, (TText8*)"+CRING: VOICE\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   100
	{	ETxString, (TText8*)"1100801\r",							0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   101
	{	ETxStringOK, NULL,											0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   102
	{	ERxString, (TText8*)"AT+CGMR",								0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   103
/**/{	ETxString, (TText8*)"+CRING: VOICE/REL SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   104
/**/{	ETxString, (TText8*)"+CRING: ALT VOICE/SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   105
/**/{	ETxString, (TText8*)"+CRING: ALT VOICE/REL ASYNC\r",		0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   106
/**/{	ETxString, (TText8*)"+CREG: 4,3\r",							0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   107
/**/{	ETxString, (TText8*)"+CRING: ALT REL ASYNC/VOICE\r",		0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   108
/**/{	ETxString, (TText8*)"+CRING: ALT REL ASYNC/REL ASYNC\r",	0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   109
/**/{	ETxString, (TText8*)"+CRING: ALT VOICE/FAX\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   110
/**/{	ETxString, (TText8*)"+CRING: VOICE\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   111
	{	ETxString, (TText8*)"9808261341\r",							0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   112
	{	ETxStringOK, NULL,											0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   113
	{	ERxString, (TText8*)"AT+CGSN",								0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   114
/**/{	ETxString, (TText8*)"+CRING: FAX\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   115
/**/{	ETxString, (TText8*)"+CRING: VOICE\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   116
/**/{	ETxString, (TText8*)"+CRING: FAX\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   117
	{	ETxString, (TText8*)"520002512954000\r",					0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   118
	{	ETxStringOK, NULL,											0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   119
	{	ERxString, (TText8*)"AT+CIMI",								0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   120
/**/{	ETxString, (TText8*)"+CRING: VOICE\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   121
	{	ETxString, (TText8*)"ERROR\r",								0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   122
	{	ERxString, (TText8*)"AT+CMGF=?",							0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   123
/**/{	ETxString, (TText8*)"+CRING: VOICE\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   124
	{	ETxString, (TText8*)"ERROR\r",								0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   125
	{	ERxString, (TText8*)"AT",									0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   126
/**/{	ETxString, (TText8*)"+CRING: VOICE\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   127
/**/{	ETxString, (TText8*)"+CRING: VOICE/REL SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   128
/**/{	ETxString, (TText8*)"+CREG: 2,4\r",							0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   129
/**/{	ETxString, (TText8*)"+CRING: ALT VOICE/SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   130
/**/{	ETxString, (TText8*)"+CRING: FAX\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   131
	{	ETxStringOK, NULL,											0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   132
	{	ERxString, (TText8*)"AT+CPMS=?",							0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   133
/**/{	ETxString, (TText8*)"+CRING: VOICE/REL SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   134
/**/{	ETxString, (TText8*)"+CREG: 2,3\r",							0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   135
/**/{	ETxString, (TText8*)"+CRING: ALT VOICE/SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   136
/**/{	ETxString, (TText8*)"+CRING: VOICE\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   137
	{	ETxString, (TText8*)"+CPMS: (\"ME\",\"SM\"),(\"ME\",\"SM\")\r",	0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   138
	{	ETxStringOK, NULL,											0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   139
	{	ERxString, (TText8*)"AT+CPMS?",								0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   140
/**/{	ETxString, (TText8*)"+CRING: FAX\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   141
	{	ETxString, (TText8*)"+CPMS: \"SM\",0,15,\"SM\",0,15\r",	0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   142
	{	ETxStringOK, NULL,											0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   143
	{	ERxString, (TText8*)"AT+CPBS=?",							0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   144
/**/{	ETxString, (TText8*)"+CRING: VOICE\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   145
	{	ETxString, (TText8*)"+CPBS: (\"ME\",\"SM\")\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   146
	{	ETxStringOK, NULL,											0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   147
	{	ERxString, (TText8*)"AT+CREG=0",							0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   148
/**/{	ETxString, (TText8*)"+CREG: 2,3\r",							0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   149
/**/{	ETxString, (TText8*)"+CRING: VOICE\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   150
	{	ETxStringOK, NULL,											0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   151
	{	ERxString, (TText8*)"AT+CREG=2",							0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   152
/**/{	ETxString, (TText8*)"+CRING: VOICE\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   153
	{	ETxString, (TText8*)"ERROR\r",								0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   154
	{	ERxString, (TText8*)"AT+CREG=1",							0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   155
/**/{	ETxString, (TText8*)"+CRING: FAX\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   156
/**/{	ETxString, (TText8*)"+CREG: 2,0\r",							0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   157
/**/{	ETxString, (TText8*)"+CRING: VOICE/REL SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   158
/**/{	ETxString, (TText8*)"+CRING: ALT VOICE/SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   159
/**/{	ETxString, (TText8*)"+CRING: ALT VOICE/REL ASYNC\r",		0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   160
/**/{	ETxString, (TText8*)"+CRING: ALT REL ASYNC/VOICE\r",		0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   161
/**/{	ETxString, (TText8*)"+CRING: VOICE/REL SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   162
/**/{	ETxString, (TText8*)"+CRING: ALT VOICE/SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   163
/**/{	ETxString, (TText8*)"+CRING: FAX\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   164
	{	ETxStringOK, NULL,											0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   165
	{	ERxString, (TText8*)"AT+CREG?",								0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   166
/**/{	ETxString, (TText8*)"+CRING: VOICE\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   167
	{	ETxString, (TText8*)"ERROR\r",								0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   168
	{	ERxString, (TText8*)"AT+CRC=1",								0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   169
/**/{	ETxString, (TText8*)"+CRING: VOICE\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   170
	{	ETxStringOK, NULL,											0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   171
	{	ERxString, (TText8*)"AT+COPS?",								0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   172
/**/{	ETxString, (TText8*)"+CRING: VOICE/REL SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   173
/**/{	ETxString, (TText8*)"+CRING: ALT VOICE/SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   174
/**/{	ETxString, (TText8*)"+CRING: ALT VOICE/REL ASYNC\r",		0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   175
/**/{	ETxString, (TText8*)"+CRING: ALT REL ASYNC/VOICE\r",		0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   176
/**/{	ETxString, (TText8*)"+CRING: VOICE\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   177
	{	ETxString, (TText8*)"+COPS: 0,0,\"UK VODAFONE\"\r",			0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   178
	{	ETxStringOK, NULL,											0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   179
	{	ERxString, (TText8*)"AT+CBC",								0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   180
/**/{	ETxString, (TText8*)"+CRING: VOICE/REL SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   181
/**/{	ETxString, (TText8*)"+CRING: ALT VOICE/SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   182
/**/{	ETxString, (TText8*)"+CREG: 0,0\r",							0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   183
/**/{	ETxString, (TText8*)"+CRING: VOICE\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   184
	{	ETxString, (TText8*)"ERROR\r",								0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   185
	{	ERxString, (TText8*)"AT+CSQ",								0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   186
/**/{	ETxString, (TText8*)"+CRING: VOICE\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   187
	{	ETxString, (TText8*)"ERROR\r",								0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   188
	{	ERxString, (TText8*)"AT+CGCLASS",							0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   189
/**/{	ETxString, (TText8*)"+CRING: VOICE\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   190
/**/{	ETxString, (TText8*)"+CRING: FAX\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   191
	{	ETxString, (TText8*)"ERROR\r",								0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   192
	{	ERxString, (TText8*)"AT+CGCLASS",							0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   193
/**/{	ETxString, (TText8*)"+CRING: FAX\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   194
/**/{	ETxString, (TText8*)"+CRING: VOICE\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   195
	{	ETxString, (TText8*)"ERROR\r",								0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   196
	{	ERxString, (TText8*)"AT+CGQREQ",							0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   197
/**/{	ETxString, (TText8*)"+CRING: VOICE/REL SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   198
/**/{	ETxString, (TText8*)"+CRING: ALT VOICE/SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   199
/**/{	ETxString, (TText8*)"+CRING: ALT VOICE/REL ASYNC\r",		0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   200
/**/{	ETxString, (TText8*)"+CRING: ALT REL ASYNC/VOICE\r",		0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   201
/**/{	ETxString, (TText8*)"+CREG: 1,1\r",							0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   202
/**/{	ETxString, (TText8*)"+CREG: 2,3\r",							0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   203
/**/{	ETxString, (TText8*)"+CRING: VOICE\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   204
	{	ETxString, (TText8*)"ERROR\r",								0, ETxEvent|EFailIfTimeOut	},		
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   205
	{	ERxString, (TText8*)"AT+CGATT",								0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   206
/**/{	ETxString, (TText8*)"+CRING: VOICE\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   207
/**/{	ETxString, (TText8*)"+CREG: 2,3\r",							0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   208
	{	ETxString, (TText8*)"ERROR\r",								0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   209
	{	ERxString, (TText8*)"AT+CNMI=?",							0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   210
/**/{	ETxString, (TText8*)"+CRING: VOICE\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   211
	{	ETxString, (TText8*)"+CNMI: (0-2),(0,1,3),(0),(0),(0,1)\r",	0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   212
	{	ETxStringOK, NULL,											0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   213
	{	ERxString, (TText8*)"AT+CBST=?",							0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   214
/**/{	ETxString, (TText8*)"+CRING: VOICE\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   215
/**/{	ETxString, (TText8*)"+CRING: FAX\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   216
	{	ETxStringOK, NULL,											0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   217
	{	ETxStringOK, NULL,											0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   218
	{	ERxString, (TText8*)"AT+CSCA?",								0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   219
/**/{	ETxString, (TText8*)"+CRING: VOICE/REL SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   220
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   221
/**/{	ETxString, (TText8*)"+CRING: VOICE/REL SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   222
/**/{	ETxString, (TText8*)"+CRING: ALT VOICE/SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   223
/**/{	ETxString, (TText8*)"+CRING: ALT VOICE/REL ASYNC\r",		0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   224
/**/{	ETxString, (TText8*)"+CRING: ALT REL ASYNC/VOICE\r",		0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   225
/**/{	ETxString, (TText8*)"+CRING: ALT VOICE/SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   226
/**/{	ETxString, (TText8*)"+CREG: 2,3\r",							0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   227
/**/{	ETxString, (TText8*)"+CRING: VOICE\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   228
/**/{	ETxString, (TText8*)"+CRING: FAX\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   229
	{	ETxString, (TText8*)"+CSCA: \"441632960000\",145",			0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   230
	{	ETxStringOK, NULL,											0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   231
	{	ERxString, (TText8*)"AT+CGREG=1",							0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   232
/**/{	ETxString, (TText8*)"+CRING: VOICE\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   233
/**/{	ETxString, (TText8*)"+CREG: 1,5\r",							0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   234
/**/{	ETxString, (TText8*)"+CRING: FAX\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   235
/**/{	ETxString, (TText8*)"+CRING: VOICE/REL SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   236
/**/{	ETxString, (TText8*)"+CRING: ALT VOICE/SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   237
/**/{	ETxString, (TText8*)"+CRING: ALT VOICE/REL ASYNC\r",		0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   238
/**/{	ETxString, (TText8*)"+CRING: ALT REL ASYNC/VOICE\r",		0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   239
/**/{	ETxString, (TText8*)"+CRING: VOICE\r",						0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   240
	{	ETxString, (TText8*)"ERROR\r",								0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   241
	{	ERxString, (TText8*)"AT*ECAM=1",							0, ERxEvent	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   242
/**/{	ETxString, (TText8*)"+CRING: ALT VOICE/REL ASYNC\r",		0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   243
/**/{	ETxString, (TText8*)"+CRING: ALT REL ASYNC/VOICE\r",		0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   244
/**/{	ETxString, (TText8*)"+CRING: ALT VOICE/SYNC\r",				0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   245
/**/{	ETxString, (TText8*)"+CREG: 2,3\r",							0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   246
	{	ETxString, (TText8*)"ERROR\r",								0, ETxEvent|EFailIfTimeOut	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   247
	//	End of initialization sequence ************************************************
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   248
	{	EWait,		 NULL,											2, ETimeOutEvent},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   249
	{	EComplete,	 NULL,											0, 0	},
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   250
	};
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   251
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   252
/**
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   253
 * This class is used by the client side of the test.  It contains the method DriveETelApi
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   254
 * which is the primary client side method.  This class inherits from the CTestBase class.
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   255
 * All client side test classes must contain these entries.
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   256
 */
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   257
class CTestDriveUnsolicited : public CTestBase
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   258
	{
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   259
public:
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   260
	static CTestDriveUnsolicited* NewL(const TScriptList aScriptListEntry,
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   261
	TInt aVarDelay=0);
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   262
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   263
	// Called by the user interface from the C function PerformTestL.
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   264
	virtual TInt RunTestL();
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   265
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   266
protected:
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   267
	// Called by the CTestBase::StartEmulator method to drive the ETel API.
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   268
	virtual TInt DriveETelApiL();
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   269
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   270
private:
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   271
	CTestDriveUnsolicited(const TScriptList aScriptListEntry, TInt aVarDelay);
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   272
	void DriveTestL() ;
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   273
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   274
	TScriptList iScriptListEntry;	//< Initialized by the constructor, it records the enumerated
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   275
									//< script entry number.
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   276
	TInt        iVarDelay;			//< Variable delay value to be used as the timeout by the
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   277
									//< ...script processing when the iParam value is set -1 in
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   278
									//< ...a TScript script whose iCommand is an EWait.
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   279
	RMobilePhone iPhone3;
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   280
	};
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   281
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   282
/**
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   283
 * This class is used by the emulator side of the test.  It implements several virtual functions
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   284
 * which are test specific and referenced by other classes.  This class inherits from the
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   285
 * CATScriptEng class.  All Emulator side test classes should have this structure.
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   286
 */
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   287
class CTestUnsolicited : public CATScriptEng
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   288
	{
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   289
public:
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   290
	static CTestUnsolicited* NewL(const TScript* aScript);
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   291
	static CTestUnsolicited* NewL(const TScript* aScript, const TInt aVarDelay);
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   292
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   293
	// Called by the scripting engine to implement the EExecuteSpecial Command.
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   294
	virtual void SpecificAlgorithmL(TInt aParam);
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   295
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   296
	// Called by the scripting engine to end the execution of the script.
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   297
	virtual void Complete(TInt aError);
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   298
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   299
	// Called by the scripting engine to start the execution of the script.
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   300
	virtual TInt Start();
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   301
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   302
private:
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   303
	CTestUnsolicited(const TScript* aScript);
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   304
	CTestUnsolicited(const TScript* aScript, const TInt aVarDelay);
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   305
	void ConstructL();
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   306
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   307
	const TScript* iScript;			//< Pointer to the first line in the associated script.
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   308
	};
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   309
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   310
#endif //__CUNSOLICITED__H__
6638e7f4bd8f opencode
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents: 0
diff changeset
   311