|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __MCECONSTANTS_H__ |
|
20 #define __MCECONSTANTS_H__ |
|
21 |
|
22 // INCLUDES |
|
23 #include "TesterConstants.h" |
|
24 |
|
25 // CONSTANTS |
|
26 |
|
27 /// MCE Ids |
|
28 |
|
29 _LIT8( KSessionId, "SessionId"); |
|
30 _LIT8( KEventId, "EventId"); |
|
31 _LIT8( KReferId, "ReferId"); |
|
32 _LIT8( KProfileObj, "ProfileObj" ); // Reference to TesterCores Registry-object |
|
33 _LIT8( KRegistryId, "RegistryId" ); |
|
34 _LIT8( KStreamId, "StreamId" ); |
|
35 _LIT8( KCodecId, "CodecId" ); |
|
36 _LIT8( KSourceId, "SourceId" ); |
|
37 _LIT8( KSinkId, "SinkId" ); |
|
38 |
|
39 /// MCE Session states |
|
40 _LIT8(KIdle, "Idle"); // Session is idle |
|
41 _LIT8(KEstablishing, "Establishing"); // Outgoing session establishment in progress |
|
42 _LIT8(KIncoming, "Incoming"); // Session received an incoming call |
|
43 _LIT8(KAnswering, "Answering"); // Answering an incoming call |
|
44 _LIT8(KProceeding, "Proceeding"); // Session media negotiations proceeding |
|
45 _LIT8(KEstablished, "Established"); // Session established |
|
46 _LIT8(KUpdating, "Reserving"); // when calling UpdateL to cause re-Invite |
|
47 |
|
48 _LIT8(KCancelling, "Cancelling"); // Cancelling outgoing session establishment |
|
49 _LIT8(KTerminating, "Terminating"); // Terminating session |
|
50 _LIT8(KTerminated, "Terminated"); // Session terminated |
|
51 _LIT8(KOnHold, "OnHold"); // Session is on hold |
|
52 _LIT8(KReferred, "Referred"); // Session has been referred |
|
53 _LIT8(KUnknownState, "Unknown session state"); |
|
54 _LIT8(KOffering, "Offering"); |
|
55 _LIT8(KPending, "Pending"); |
|
56 /// MCE Stream states |
|
57 _LIT8( KStreamEnable, "Enable" ); |
|
58 _LIT8( KStreamDisable, "Disable" ); |
|
59 |
|
60 //MCE Mediastream states |
|
61 _LIT8( KUninitialized, "Uninitialized" ); |
|
62 _LIT8( KInitialized, "Initialized" ); |
|
63 _LIT8( KBuffering, "Buffering" ); |
|
64 _LIT8( KmsIdle, "Idle" ); |
|
65 _LIT8( KStreaming, "Streaming" ); |
|
66 _LIT8( KDisabled, "Disabled" ); |
|
67 _LIT8( KNoResources, "NoResources" ); |
|
68 _LIT8( KTranscodingRequired, "TranscodingRequired" ); |
|
69 _LIT8( KTranscoding, "Transcoding" ); |
|
70 // OnHold defined in session states |
|
71 _LIT8( KRemoving, "Removing" ); |
|
72 |
|
73 |
|
74 /// Additional state for MCE Events |
|
75 _LIT8( KActive, "Active" ); |
|
76 |
|
77 /// Additional state for MCE Refers |
|
78 _LIT8( KAccepted, "Accepted" ); |
|
79 |
|
80 |
|
81 /// Misc |
|
82 /// |
|
83 const TInt KMceMessageAtIndex( 0 ); |
|
84 /// Default receive timeout |
|
85 const TInt KDefaultReceiveTimeout(5); |
|
86 /// Microseconds in one second |
|
87 const TInt KSecondAsMicros( 1000000 ); |
|
88 /// SIP Header separator character |
|
89 const TUint8 KHeaderSeparator( ':' ); |
|
90 /// Whitespace |
|
91 _LIT8( KSpace, " "); |
|
92 /// Horizontal tab |
|
93 _LIT8( KTab, "\t" ); |
|
94 /// Floor control TBCP type |
|
95 _LIT8( KFCTypeTBCP, "TBCP" ); |
|
96 /// MCE Servers processname |
|
97 _LIT( KMceServerProcessName, "*MceServer*"); |
|
98 |
|
99 /// CTRL parameter names |
|
100 _LIT8( KParamRTPInactivityTimer, "InactivityTimer" ); |
|
101 _LIT8( KParamPreferredEncodingDecodingDeviceUid, "EncodingDecoding"); |
|
102 _LIT8( KParamFrameRate, "FrameRate" ); |
|
103 _LIT8( KParamConfigKeys, "ConfigKeys" ); |
|
104 _LIT8( KParamAllowedFrameRates, "AllowedFrameRates"); |
|
105 _LIT8( KParamAllowedBitRate, "AllowedBitRate"); |
|
106 _LIT8( KParamAllowedResolutions, "AllowedResolutions"); |
|
107 _LIT8( KParamResolution, "Resolution"); |
|
108 _LIT8( KParamMaxBitRate, "MaxBitRate" ); |
|
109 _LIT8( KParamFCMessage, "FCMessage"); |
|
110 _LIT8( KParamFCMessageCount, "FCMessageCount"); |
|
111 _LIT8( KParamFCPort, "FloorControlPort"); |
|
112 _LIT8( KParamTimeout, "Timeout" ); |
|
113 _LIT8( KParamRecipient, "Recipient" ); |
|
114 _LIT8( KParamOriginator, "Originator" ); |
|
115 _LIT8( KArrayCodecsList, "CodecsOrderedList" ); |
|
116 _LIT8( KParamToHeader, "ToHeader" ); |
|
117 _LIT8( KParamDeleteSession, "DeleteSession"); |
|
118 _LIT8( KParamSessionUpdate, "SessionUpdate"); |
|
119 _LIT8( KParamSessionType, "SessionType" ); |
|
120 _LIT8( KParamSessionPriorityUplink, "SessionPriorityUplink"); //adamcand |
|
121 _LIT8( KParamSessionPriorityDownlink, "SessionPriorityDownlink"); //adamcand |
|
122 _LIT8( KParamAudioPrefUplink, "SessionPrefUplink"); //adamcand |
|
123 _LIT8( KParamAudioPrefDownlink, "SessionPrefDownlink"); //adamcand |
|
124 _LIT8( KParamReasonPhrase, "ReasonPhrase"); |
|
125 _LIT8( KParamStatusCode, "StatusCode" ); |
|
126 _LIT8( KParamSipHeaders, "Headers" ); |
|
127 _LIT8( KParamBody, "Body"); |
|
128 _LIT8( KParamContentType, "MultiPartType"); |
|
129 _LIT8( KParamFCMediaAttrLines, "FCMediaAttributeLines"); |
|
130 _LIT8( KParamReferTo, "ReferTo" ); |
|
131 _LIT8( KParamSuppression, "Suppression" ); |
|
132 _LIT8( KParamProfileId, "ProfileId" ); |
|
133 _LIT8( KParamRemoteURI, "RemoteURI" ); |
|
134 _LIT8( KParamEventHeader, "EventHeader" ); |
|
135 _LIT8( KParamRefreshInterval, "RefreshInterval" ); |
|
136 _LIT8( KParamEventOriginator, "EventOriginator" ); |
|
137 _LIT8( KParamEnable, "Enable" ); |
|
138 _LIT8( KParamActivity, "Activity" ); |
|
139 _LIT8( KParamUseFloorControl, "UseFloorControl" ); |
|
140 _LIT8( KParamMediaLines, "MediaLines" ); |
|
141 _LIT8( KParamSinks, "Sinks" ); |
|
142 _LIT8( KParamSink, "Sink" ); |
|
143 _LIT8( KParamSource, "Source" ); |
|
144 _LIT8( KParamSourceId, "SourceId" ); |
|
145 _LIT8( KParamCodecs, "Codecs" ); |
|
146 _LIT8( KParamBitrates, "Bitrate" ); |
|
147 _LIT8( KParamCodecMode, "CodecMode" ); |
|
148 _LIT8( KParamPayloadType, "PayloadType" ); |
|
149 _LIT8( KParamPTime, "PTime" ); |
|
150 _LIT8( KParamMaxPTime, "MaxPTime" ); |
|
151 _LIT8( KParamSamplingFreq, "SamplingFreq" ); |
|
152 _LIT8( KParamVAD, "VAD" ); |
|
153 _LIT8( KParamNotifyReceiver, "NotifyReceiver" ); |
|
154 _LIT8( KParamNotifyReceiverEventId, "NotifyReceiverEventId" ); |
|
155 _LIT8( KParamSDPLines, "SDPLines" ); |
|
156 _LIT8( KParamContentHeaders, "ContentHeaders"); |
|
157 _LIT8( KParamMediaStreamLocalPort, "MediaStreamLocalPort"); |
|
158 _LIT8( KParamCallbackType, "CallbackType" ); |
|
159 _LIT8( KParamMediaSDPLines, "MediaSDPLines" ); //Will be removed? |
|
160 _LIT8( KParamPropertyUid, "PropertyUid" ); |
|
161 _LIT8( KParamPropertyKey, "PropertyKey" ); |
|
162 _LIT8( KParamPropertyValue, "PropertyValue" ); |
|
163 _LIT8( KParamPropertyTextValue, "PropertyTextValue" ); |
|
164 _LIT8( KParamKeepAliveValue, "KeepAliveValue" ); |
|
165 _LIT8( KParamSuppressRtcp, "SuppressRtcp" ); |
|
166 _LIT8( KParamSetDtmfPri, "SetDtmfPriorities" ); |
|
167 _LIT8( KParamMethod, "Method" ); |
|
168 _LIT8( KParamTransactionId, "TransactionId" ); |
|
169 _LIT8( KParamObserverId, "ObserverId" ); |
|
170 _LIT8( KParamSetObserver, "SetObserver" ); |
|
171 |
|
172 |
|
173 //alternative mainstream |
|
174 _LIT8( KParamMainStreamAudioOut, "MainStreamAudioOut" ); |
|
175 |
|
176 _LIT8( KParamSelectCodec, "SelectCodec" ); |
|
177 _LIT8( KParamAudioFileSource, "AudioFileSource" ); |
|
178 _LIT8( KParamMediaFileSink, "MediaFileSink" ); |
|
179 _LIT8(KTestAudioFileName, "C:\\Test.3gp"); |
|
180 |
|
181 //file handling params |
|
182 _LIT8( KParamGetFileInfo,"GetFileInfo"); |
|
183 _LIT8( KParamDeleteFile,"DeleteFile"); |
|
184 _LIT8( KParamCheckFileExists,"CheckFileExists"); |
|
185 _LIT8( KParamGetFilesFromFolder,"GetFilesFromFolder"); |
|
186 _LIT8( KParamFindFile,"FindFile"); |
|
187 |
|
188 |
|
189 _LIT8( KParamSessionModifier, "SessionModifier" ); |
|
190 |
|
191 _LIT8( KParamDtmfTones, "DtmfTones" ); |
|
192 _LIT8( KParamDtmfDuration, "DtmfDuration" ); |
|
193 _LIT8( KParamDtmfIsSingleTone, "DtmfSingleTone" ); |
|
194 |
|
195 /// CTRL parameter values |
|
196 _LIT8( KValueSessionTypeAudio, "audio" ); |
|
197 _LIT8( KValueSessionTypeVideo, "video" ); |
|
198 _LIT8( KValueSessionTypeAudioVideo, "audio/video" ); |
|
199 _LIT8( KValueSourceRTP, "RTP" ); |
|
200 _LIT8( KValueSourceMic, "Mic" ); |
|
201 _LIT8( KValueSourceFile, "FileSource" ); |
|
202 _LIT8( KValueSourceCamera, "Camera" ); |
|
203 _LIT8( KValueSinkDisplay, "Display" ); |
|
204 _LIT8( KValueSourceUnknown, "Unknown" ); |
|
205 _LIT8( KValueSinkRTP, "RTP" ); |
|
206 _LIT8( KValueSinkSpeaker, "Speaker" ); |
|
207 _LIT8( KValueSinkFile, "FileSink" ); |
|
208 _LIT8( KValueSinkUnknown, "Unknown" ); |
|
209 _LIT8( KValueCodecAll, "All" ); |
|
210 _LIT8( KValueCodecNone, "None" ); |
|
211 _LIT8( KValueCodecAMR, "AMR" ); |
|
212 _LIT8( KValueCodecH263, "H263" ); |
|
213 _LIT8( KValueCodecDtmf, "telephone-event" ); |
|
214 _LIT8( KValueStreamTypeAudio, "Audio" ); |
|
215 _LIT8( KValueStreamTypeVideo, "Video" ); |
|
216 _LIT8( KValueStreamTypeUnknown, "Unknown" ); |
|
217 |
|
218 _LIT8( KValueSessionModifier100RelNotUsed, "NotUsed" ); |
|
219 _LIT8( KValueSessionModifier100RelSupported, "Supported" ); |
|
220 _LIT8( KValueSessionModifier100RelRequired, "Required" ); |
|
221 _LIT8( KValueControlPathSecurityUnknown, "Unknown" ); |
|
222 _LIT8( KValueControlPathSecure, "Secure" ); |
|
223 _LIT8( KValueControlPathUnsecure, "Unsecure" ); |
|
224 |
|
225 |
|
226 /// Parameter names in a CTRL response |
|
227 |
|
228 _LIT8( KResponseTestClientIds, "TestClientIds" ); |
|
229 _LIT8( KResponseCode, "ResponseCode" ); |
|
230 _LIT8( KResponseHeaders, "Headers" ); |
|
231 _LIT8( KResponseBody, "Body" ); |
|
232 _LIT8( KResponseContentType, "ContentType"); |
|
233 _LIT8( KResponseStatusCode, "StatusCode"); |
|
234 _LIT8( KResponseReasonPhrase, "ReasonPhrase"); |
|
235 _LIT8( KResponseFCMessage, "FCMessage"); |
|
236 _LIT8( KResponseFCMediaAttrLines, "FCMediaAttributeLines"); |
|
237 _LIT8( KResponseActionReturnCode, "ActionReturnCode" ); |
|
238 _LIT8( KResponseState, "State"); |
|
239 _LIT8( KResponseStateText, "StateText"); |
|
240 _LIT8( KResponseEventState, "EventState"); |
|
241 _LIT8( KResponseEventStateText, "EventStateText"); |
|
242 _LIT8( KResponseReferState, "EventState"); |
|
243 _LIT8( KResponseReferStateText, "ReferStateText"); |
|
244 _LIT8( KResponseConnectionActive, "ConnectionActive"); |
|
245 _LIT8( KResponseReferTo, "ReferTo"); |
|
246 _LIT8( KResponseError, "ErrorCode"); |
|
247 _LIT8( KResponseProfileId, "ProfileId"); |
|
248 _LIT8( KResponseOriginator, "Originator" ); |
|
249 _LIT8( KResponseRecipient, "Recipient" ); |
|
250 _LIT8( KResponseAudioCodecs, "AudioCodecs" ); |
|
251 _LIT8( KResponseVideoCodecs, "VideoCodecs" ); |
|
252 _LIT8( KResponseStreams, "Streams" ); |
|
253 _LIT8( KResponseSinks, "Sinks" ); |
|
254 _LIT8( KResponseSinkIds, "SinkIds" ); |
|
255 _LIT8( KResponseSource, "Source" ); |
|
256 _LIT8( KResponseSourceId, "SourceId" ); |
|
257 _LIT8( KResponseCodecs, "Codecs" ); |
|
258 _LIT8( KResponseStreamState, "StreamState" ); |
|
259 _LIT8( KResponseStreamStateText, "StreamStateText" ); |
|
260 _LIT8( KResponseBoundStreamStateText, "BoundStreamStateText" ); |
|
261 _LIT8( KResponseLocalMediaPort, "LocalMediaPort" ); |
|
262 _LIT8( KResponseBoundStream, "BoundStream" ); |
|
263 _LIT8( KResponseBoundStreamCodecs, "BoundStreamCodecs" ); |
|
264 _LIT8( KResponseBoundStreamSource, "BoundStreamSource" ); |
|
265 _LIT8( KResponseBoundStreamSourceId, "BoundStreamSourceId" ); |
|
266 _LIT8( KResponseBoundStreamSinks, "BoundStreamSinks" ); |
|
267 _LIT8( KResponseBoundStreamSinkIds, "BoundStreamSinkIds" ); |
|
268 _LIT8( KResponseBoundStreamState, "BoundStreamState" ); |
|
269 _LIT8( KResponseBoundLocalMediaPort, "BoundLocalMediaPort" ); |
|
270 _LIT8( KResponseStreamType, "StreamType" ); |
|
271 _LIT8( KResponseBoundStreamType, "BoundStreamType" ); |
|
272 _LIT8( KResponseBitrates, "Bitrate" ); |
|
273 _LIT8( KResponseCodecMode, "CodecMode" ); |
|
274 _LIT8( KResponseFourCC, "FourCC" ); |
|
275 _LIT8( KResponsePayloadType, "PayloadType" ); |
|
276 _LIT8( KResponsePTime, "PTime" ); |
|
277 _LIT8( KResponseMaxPTime, "MaxPTime" ); |
|
278 _LIT8( KResponseSamplingFreq, "SamplingFreq" ); |
|
279 _LIT8( KResponseCodecName, "CodecName" ); |
|
280 _LIT8( KResponseVAD, "VAD" ); |
|
281 _LIT8( KResponseActivity, "Activity"); |
|
282 _LIT8( KResponseSupportedAudioCodecs, "SupportedAudioCodecs" ); |
|
283 _LIT8( KResponseSupportedVideoCodecs, "SupportedVideoCodecs" ); |
|
284 _LIT8( KResponseAllowedBitRate, "AllowedBitRate"); |
|
285 _LIT8( KResponseMediaStreamStateText, "MediaStreamStateText" ); |
|
286 _LIT8( KResponseMediaStreamState, "MediaStreamState" ); |
|
287 _LIT8( KResponseBoundMediaStreamStateText, "BoundMediaStreamStateText" ); |
|
288 _LIT8( KResponseBoundMediaStreamState, "BoundMediaStreamState" ); |
|
289 _LIT8( KResponseControlPathSecurity, "ControlPathSecurity"); |
|
290 _LIT8( KResponsePropertyValue, "PropertyValue"); |
|
291 _LIT8( KResponsePropertyTextValue, "PropertyValue"); |
|
292 _LIT8( KResponseMethod, "Method" ); |
|
293 _LIT8( KResponseTransactionId, "TransactionId" ); |
|
294 |
|
295 /// Error codes |
|
296 |
|
297 _LIT( KMceErrOOMInObserver, "MCETester" ); |
|
298 |
|
299 |
|
300 // Callback type constants |
|
301 |
|
302 typedef TInt TTcMceCallbackType; |
|
303 |
|
304 const TTcMceCallbackType KTcMceUnknown = 0; |
|
305 const TTcMceCallbackType KTcMceRTPSRReceived = 1; |
|
306 const TTcMceCallbackType KTcMceRTPRRReceived = 2; |
|
307 const TTcMceCallbackType KTcMceInactivityTimeout = 3; |
|
308 const TTcMceCallbackType KTcMceActivity = 4; |
|
309 |
|
310 // Possible values for parameter KParamObserverId |
|
311 const TInt KSessionObserver = 0; |
|
312 const TInt KInSessionObserver = 1; |
|
313 const TInt KMediaObserver = 2; |
|
314 const TInt KRtpObserver = 3; |
|
315 const TInt KTransactionObserver = 4; |
|
316 const TInt KInTransactionObserver = 5; |
|
317 const TInt KEventObserver = 6; |
|
318 const TInt KInEventObserver = 7; |
|
319 const TInt KReferObserver = 8; |
|
320 const TInt KInReferObserver = 9; |
|
321 |
|
322 #endif // __MCECONSTANTS_H__ |