author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 13 Oct 2010 14:20:32 +0300 | |
branch | RCL_3 |
changeset 33 | 2989b291cac7 |
parent 28 | d38647835c2e |
permissions | -rw-r--r-- |
28 | 1 |
/* |
2 |
* Copyright (c) 2006-2008 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: Constants for SVP. |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
||
19 |
#ifndef SVPCONSTS_H |
|
20 |
#define SVPCONSTS_H |
|
21 |
||
22 |
#include <e32base.h> |
|
23 |
||
24 |
// SVP panic codes; panic code range -32600 -> -32649 |
|
25 |
const TInt KSVPanicSessionNotFound = -32601; |
|
26 |
const TInt KSVPPanicBadArgument = -32602; |
|
27 |
||
28 |
// SVP implementation Uid |
|
29 |
const TUid KSVPImplementationUid = {0x10282589}; |
|
30 |
||
31 |
// SVP Uid |
|
32 |
const TUid KSVPUid = { 0 }; |
|
33 |
||
34 |
// secure preference consts |
|
35 |
const TUint32 KSVPStatusNonSecure = 0; |
|
36 |
const TUint32 KSVPStatusSecurePreferred = 1; |
|
37 |
const TUint32 KSVPStatusSecureMandatory = 2; |
|
38 |
||
39 |
// codec SDP names |
|
40 |
_LIT8( KTELEVENT, "telephone-event" ); |
|
41 |
||
42 |
_LIT8( KAMR,"AMR" ); |
|
43 |
_LIT8( KPCMA, "PCMA" ); |
|
44 |
_LIT8( KPCMU, "PCMU" ); |
|
45 |
_LIT8( KG729, "G729" ); |
|
46 |
_LIT8( KG711, "G711" ); |
|
47 |
_LIT8( KILBC, "iLBC" ); |
|
48 |
_LIT8( KCN, "CN" ); |
|
49 |
_LIT8( KRED, "red"); |
|
50 |
_LIT8( KAMRWB,"AMR-WB"); |
|
51 |
||
52 |
const TInt KSVPDefKeepAlivePl = 120; |
|
53 |
const TInt KSVPDefKeepAlivePlMax = 127; |
|
54 |
const TInt KSVPCNPayloadType = 13; |
|
55 |
||
56 |
// timer constants |
|
57 |
const TInt KSVPTerminationTimerExpired = 1; |
|
58 |
const TInt KSVPInviteTimerExpired = 2; |
|
59 |
const TInt KSVPExpiresTimeExpired = 3; |
|
60 |
const TInt KSVPRemoteEndDiedExpired = 4; |
|
61 |
const TInt KSVPHangUpTimerExpired = 5; |
|
62 |
const TInt KSVPEmergencyExpired = 6; |
|
63 |
const TInt KSVPHoldTimerExpired = 7; |
|
64 |
const TInt KSVPResumeTimerExpired = 8; |
|
65 |
const TInt KSVPReInviteTimerExpired = 9; |
|
66 |
const TInt KSVPReferTimerExpired = 10; |
|
67 |
const TInt KSVPICMPErrorTimerExpired = 11; |
|
68 |
const TInt KSVPSinkResumeICMPErrorTimerExpired = 12; |
|
69 |
const TInt KSVPSourceResumeICMPErrorTimerExpired = 13; |
|
70 |
const TInt KSVPTerminatingTime = 4000; |
|
71 |
const TInt KSVPMoHangupTerminatingTime = 500; |
|
72 |
const TInt KSVPInviteTimer = 120000; |
|
73 |
const TInt KSVPHoldExpirationTime = 10000; |
|
74 |
const TInt KSVPResumeExpirationTime = 10000; |
|
75 |
const TInt KSVPReferExpirationTime = 10000; |
|
76 |
const TInt KSVPMilliSecondCoefficient = 1000; |
|
77 |
const TUint KSvpStandbyTimerInMillisecs = 2000; // timer constant needed when creating rtp source |
|
78 |
const TUint KSvpJitterBufferLength = 10; |
|
79 |
const TUint KSvpJitterBufferThreshold = 3; |
|
80 |
const TUint32 KSVPDefaultExpiresTime = 120; |
|
81 |
const TUint32 KSVPDefaultSessionExpires = 1800; |
|
82 |
const TInt KSVPICMPErrorTime = 5000; |
|
83 |
const TUint KSVPSinkResumeICMPErrorTime = 1000; // Time after resume and icmp error |
|
84 |
const TUint KSVPSourceResumeICMPErrorTime = 1000; // Time after resume and icmp error |
|
85 |
||
86 |
// Recipient DTMF parsing |
|
87 |
_LIT( KSVPDtmfAllValidChars, "0123456789pw*+#" ); |
|
88 |
_LIT( KSVPDtmfTelNumRange, "+0123456789" ); |
|
89 |
_LIT( KSVPDtmfDelimiterRange, "pw+" ); |
|
90 |
||
91 |
// constants for URI handling and SIP headers |
|
92 |
_LIT8( KSVPSipPrefix, "sip:" ); |
|
93 |
_LIT( KSVPSipPrefix2, "sip:" ); |
|
94 |
const TInt KSVPSipPrefixLength = 4; |
|
95 |
_LIT8( KSVPSipsPrefix, "sips:" ); |
|
96 |
_LIT( KSVPSipsPrefix2, "sips:" ); |
|
97 |
const TInt KSVPSipsPrefixLength = 5; |
|
98 |
_LIT8( KSVPAt, "@" ); |
|
99 |
_LIT( KSVPAt2, "@" ); |
|
100 |
const TInt KSVPAtLength = 1; |
|
101 |
_LIT8( KSVPSemiCln, ";" ); |
|
102 |
_LIT8( KSVPCln, ":" ); |
|
103 |
_LIT( KSVPCln2, ":" ); |
|
104 |
_LIT8( KSVPHphn, "-" ); |
|
105 |
_LIT8( KSVPComma, "," ); |
|
106 |
_LIT( KSVPQuotationMark, "\"" ); |
|
107 |
_LIT8 (KSVPUserEqualsPhone, ";user=phone" ); |
|
108 |
const TInt KSVPUserEqualsPhoneLenght = 11; |
|
109 |
const TInt KSVPLRLength = 3; |
|
110 |
_LIT8( KSVPLooseRouting, ";lr" ); |
|
111 |
const TInt KSVPSingleBracketLength = 1; // only one bracket |
|
112 |
const TInt KSVPDoubleBracketLength = 2; // always opening and closing bracket |
|
113 |
_LIT8( KSVPLeftBracketMark, "<"); |
|
114 |
_LIT( KSVPLeftBracketMark2, "<" ); |
|
115 |
_LIT8( KSVPRightBracketMark, ">"); |
|
116 |
_LIT( KSVPRightBracketMark2, ">" ); |
|
117 |
_LIT8( KSVPAuthidentity, "?X-Sipx-Authidentity="); |
|
118 |
_LIT8( KSVPAuthidentity2, "?X-sipX-Authidentity="); |
|
119 |
||
120 |
// uri length |
|
121 |
const TUint KSVPMaxUriLength = 100; |
|
122 |
// codec name length, max |
|
123 |
const TUint KSVPMaxCodecNameLength = 8; |
|
124 |
const TUint8 KSVPLineFeed2 = '\n'; |
|
125 |
const TUint8 KSVPHyphen = '-'; |
|
126 |
_LIT( KSVPSpace2, " " ); |
|
127 |
_LIT8( KSVPLineFeed, "\n" ); |
|
128 |
||
129 |
_LIT8( KSVPOpeningBracket, "(" ); |
|
130 |
_LIT8( KSVPClosingBracket, ")" ); |
|
131 |
_LIT( KSVPCSeqPrefix, "CSeq:" ); |
|
132 |
const TInt KSVPCSeqPrefixLength = 5; |
|
133 |
||
134 |
// user=phone |
|
135 |
_LIT8(KSVPPlus, "+"); |
|
136 |
_LIT8( KUserEqualsPhone, "user=phone" ); // user = phone |
|
137 |
const TInt KUserEqualsPhoneParamLength = 11; // user = phone |
|
138 |
const TInt KSemicolonLength = 1; // user = phone |
|
139 |
const TInt KSVPMinUserInfoLength = 2; // user = phone |
|
140 |
||
141 |
_LIT8( KTelPrefix, "tel:" ); |
|
142 |
const TInt KTelPrefixLength = 4; |
|
143 |
||
144 |
_LIT( KSVPSemiColon, ";" ); |
|
145 |
_LIT( KSVPLogFieldDelimiter, "\t" ); |
|
146 |
const TUint8 KSVPLeftBracket = '<'; |
|
147 |
const TUint KSVPUserEqualsPhoneLength = 11; |
|
148 |
_LIT( KSVPName,"SVP" ); |
|
149 |
||
150 |
||
151 |
_LIT8( KSVPTLS, "tls" ); |
|
152 |
||
153 |
const TUint KSVPMaxUAFreeTextLength = 32; |
|
154 |
const TUint KSVPTempStringlength = 200; |
|
155 |
const TUint KSVPAcceptLangStringLength= 19; // example: Accept-language: en |
|
156 |
const TUint KSVPExpiresHeaderLength = 12; // example: Expires: 120 |
|
157 |
const TUint KSVPQuesReplacesTxtLength = 10; |
|
158 |
const TUint KSVPReferredByLength = 12; |
|
159 |
const TUint KSVPToTagLength = 12; |
|
160 |
const TUint KSVPFromTagLength = 14; |
|
161 |
const TUint KSVPTagLength = 5; |
|
162 |
||
163 |
_LIT8( KSVPAcceptLanguage, "Accept-Language:" ); |
|
164 |
_LIT8( KSVPExpiresHeader, "Expires:" ); |
|
165 |
_LIT8( KSVPSessionExpires, "Session-Expires:" ); |
|
166 |
_LIT8( KSVPRefresher, ";refresher" ); |
|
167 |
_LIT8( KSVPMinSessionExpires, "Min-SE:" ); |
|
168 |
const TInt KSVPMinExpiresLenght = 8; |
|
169 |
_LIT8( KSVPExpires, "120"); |
|
170 |
_LIT8( KSVPUserAgent, "User-Agent:" ); |
|
171 |
_LIT8( KSVPSpaceMark, " " ); |
|
172 |
_LIT8( KSVPReferredBy, "Referred-By:" ); |
|
173 |
_LIT8( KSVPCallId_replaces, "Call-ID: " ); |
|
174 |
_LIT8( KSVP_tag, ";tag=" ); |
|
175 |
_LIT8( KSVPTo_tag, "%3Bto-tag%3D" ); |
|
176 |
_LIT8( KSVPFrom_tag, "%3Bfrom-tag%3D" ); |
|
177 |
_LIT8( KSVPFromPrompt, "From: "); |
|
178 |
_LIT8( KSVPPIdentity, "P-Preferred-Identity: "); |
|
179 |
||
180 |
const TUint KSVPFromPromptStringlength = 6; |
|
181 |
||
182 |
_LIT8( KSVPReplacesColonTxt, "Replaces:" ); |
|
183 |
_LIT8( KSVPQuesReplacesTxt, "?Replaces=" ); |
|
184 |
||
185 |
_LIT8(KSVPMyAnonymousAddress, "\"Anonymous\" <sip:anonymous@anonymous.invalid>"); |
|
186 |
_LIT8(KSVPMyAnonymousSecAddress, "\"Anonymous\" <sips:anonymous@anonymous.invalid>"); |
|
187 |
_LIT(KSVPAnonymous, "Anonymous"); |
|
188 |
_LIT8(KSVPAnonymousAddressWithoutName, "<sip:anonymous@anonymous.invalid>"); |
|
189 |
_LIT8(KSVPAnonymousSecAddressWithoutName, "<sips:anonymous@anonymous.invalid>"); |
|
190 |
_LIT8(KSVPAnonymousName8, "Anonymous"); |
|
191 |
_LIT(KSVPPrivateNumber, "Private"); |
|
192 |
||
193 |
_LIT8( KSVPEmpty, ""); |
|
194 |
_LIT8( KSVPPrivacy, "Privacy:" ); |
|
195 |
_LIT8( KSVPId, "Id" ); |
|
196 |
_LIT8( KSVPNone, "None" ); |
|
197 |
_LIT8( KSVPSupported, "Supported:" ); |
|
198 |
_LIT8( KSVPRequire, "Require:" ); |
|
199 |
_LIT8( KSVPPrecondition, "precondition" ); |
|
200 |
_LIT8( KSVP100rel, "100rel" ); |
|
201 |
const TInt KSVPClirOff = 0; |
|
202 |
const TInt KSVPClirOn = 1; |
|
203 |
const TInt KSVPClirDefault = 2; |
|
204 |
const TUint KSVPPrivacyLength = 13; // example: Privacy: None |
|
205 |
||
206 |
const TUint8 KSVPQuestionMark = '?'; |
|
207 |
const TUint8 KSVPColonMark = ':'; |
|
208 |
const TUint8 KSVPSemiColonMark = ';'; |
|
209 |
||
210 |
const TUint KSVPMaxLangCodeLength = 4; |
|
211 |
||
212 |
//Logging |
|
213 |
const TInt KSvpMaxDebugBufferSize = 256; |
|
214 |
||
215 |
// ipapputils |
|
216 |
const TUint KSVPWlanMacAddressLength = 50; |
|
217 |
_LIT8 ( KSVPWlanMacAddressFrmt, "-" ); |
|
218 |
||
219 |
const TInt KSVPContactArrayGranularity = 5; |
|
220 |
||
221 |
_LIT8( KSVPMessageSipfrag, "message/sipfrag;version=2.0"); |
|
222 |
_LIT8( KSVPSubsStateTerminated, "Subscription-State: terminated;reason=noresource"); |
|
223 |
||
224 |
_LIT( KSVPS60,"S60" ); |
|
33
2989b291cac7
Revision: 201039
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
28
diff
changeset
|
225 |
_LIT( KSVPCopyright, "©" ); |
28 | 226 |
_LIT(KSVPSalesModelFileName, "\\resource\\versions\\model.txt"); |
227 |
||
228 |
// Emergency constants |
|
229 |
const TInt KSVPEmergencyTimeout = 17000; |
|
230 |
// Location information constants |
|
231 |
const CActive::TPriority KSVPEmergencyPositioningPriority = |
|
232 |
CActive::EPriorityStandard; |
|
233 |
const TInt KSVPEmergencyDhcpDefaultPsyModuleId = 0x10283114; |
|
234 |
_LIT( KSVPEmergencyApplicationName, "svp.dll" ); // Requestor identifier |
|
235 |
const TUint32 KSVPEmergencyPositioningTimeout = 5000000; // In microseconds |
|
236 |
// Location related header constants |
|
237 |
_LIT8( KSVPEmergencyPriorityEmergency, "Priority: emergency" ); |
|
238 |
_LIT8( KSVPEmergencyGeolocation, "Geolocation: " ); |
|
239 |
_LIT8( KSVPEmergencyTagInsertedBy, ";inserted-by=" ); |
|
240 |
_LIT8( KSVPEmergencyTagRecipientEndpoint, ";recipient=endpoint" ); |
|
241 |
_LIT8( KSVPEmergencyAcceptApplicationSdp, "Accept: application/sdp" ); |
|
242 |
_LIT8( KSVPEmergencyApplicationPidfXml, "application/pidf+xml" ); |
|
243 |
_LIT8( KSVPEmergencyContentIdName, "Content-ID: " ); |
|
244 |
_LIT8( KSVPCidPrefix, "cid:" ); |
|
245 |
||
246 |
||
247 |
const TInt KSVPAnonymousBarringOff = 0; |
|
248 |
const TInt KSVPAnonymousBarringOn = 1; |
|
249 |
const TInt KSVPDoNotDisturbOff = 0; |
|
250 |
const TInt KSVPDoNotDisturbOn = 1; |
|
251 |
||
252 |
const TInt KSVPErrDnDRejection = -10; |
|
253 |
const TInt KSVPErrAnonymousCallRejection = -11; |
|
254 |
const TInt KSVPErrCodecMismatch = -12; |
|
255 |
const TInt KSVPErrWrongMinSE = -13; |
|
256 |
||
257 |
const TInt KSVPMceArrayIndexOriginator = 0; |
|
258 |
||
259 |
const TInt KSVPDefaultUDPRefreshInterval = 28; // 28 seconds is default |
|
260 |
||
261 |
// DATA TYPES |
|
262 |
enum TSupplementaryServicesEvent |
|
263 |
{ |
|
264 |
ESVPSSDefault, |
|
265 |
ESVPSSAnonymousBarring, |
|
266 |
ESVPSSDoNotDisturb |
|
267 |
}; |
|
268 |
||
269 |
const TUint KSVPWlanTrafficStreamParamUserPriority = 6; |
|
270 |
||
271 |
#endif // SVPCONSTS_H |