|
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 // uri length |
|
119 const TUint KSVPMaxUriLength = 100; |
|
120 // codec name length, max |
|
121 const TUint KSVPMaxCodecNameLength = 8; |
|
122 const TUint8 KSVPLineFeed2 = '\n'; |
|
123 const TUint8 KSVPHyphen = '-'; |
|
124 _LIT( KSVPSpace2, " " ); |
|
125 _LIT8( KSVPLineFeed, "\n" ); |
|
126 |
|
127 _LIT8( KSVPOpeningBracket, "(" ); |
|
128 _LIT8( KSVPClosingBracket, ")" ); |
|
129 _LIT( KSVPCSeqPrefix, "CSeq:" ); |
|
130 const TInt KSVPCSeqPrefixLength = 5; |
|
131 |
|
132 // user=phone |
|
133 _LIT8(KSVPPlus, "+"); |
|
134 _LIT8( KUserEqualsPhone, "user=phone" ); // user = phone |
|
135 const TInt KUserEqualsPhoneParamLength = 11; // user = phone |
|
136 const TInt KSemicolonLength = 1; // user = phone |
|
137 const TInt KSVPMinUserInfoLength = 2; // user = phone |
|
138 |
|
139 _LIT8( KTelPrefix, "tel:" ); |
|
140 const TInt KTelPrefixLength = 4; |
|
141 |
|
142 _LIT( KSVPSemiColon, ";" ); |
|
143 _LIT( KSVPLogFieldDelimiter, "\t" ); |
|
144 const TUint8 KSVPLeftBracket = '<'; |
|
145 const TUint KSVPUserEqualsPhoneLength = 11; |
|
146 _LIT( KSVPName,"SVP" ); |
|
147 |
|
148 |
|
149 _LIT8( KSVPTLS, "tls" ); |
|
150 |
|
151 const TUint KSVPMaxUAFreeTextLength = 32; |
|
152 const TUint KSVPTempStringlength = 200; |
|
153 const TUint KSVPAcceptLangStringLength= 19; // example: Accept-language: en |
|
154 const TUint KSVPExpiresHeaderLength = 12; // example: Expires: 120 |
|
155 const TUint KSVPQuesReplacesTxtLength = 10; |
|
156 const TUint KSVPReferredByLength = 12; |
|
157 const TUint KSVPToTagLength = 12; |
|
158 const TUint KSVPFromTagLength = 14; |
|
159 const TUint KSVPTagLength = 5; |
|
160 |
|
161 _LIT8( KSVPAcceptLanguage, "Accept-Language:" ); |
|
162 _LIT8( KSVPExpiresHeader, "Expires:" ); |
|
163 _LIT8( KSVPSessionExpires, "Session-Expires:" ); |
|
164 _LIT8( KSVPRefresher, ";refresher" ); |
|
165 _LIT8( KSVPMinSessionExpires, "Min-SE:" ); |
|
166 const TInt KSVPMinExpiresLenght = 8; |
|
167 _LIT8( KSVPExpires, "120"); |
|
168 _LIT8( KSVPUserAgent, "User-Agent:" ); |
|
169 _LIT8( KSVPSpaceMark, " " ); |
|
170 _LIT8( KSVPReferredBy, "Referred-By:" ); |
|
171 _LIT8( KSVPCallId_replaces, "Call-ID: " ); |
|
172 _LIT8( KSVP_tag, ";tag=" ); |
|
173 _LIT8( KSVPTo_tag, "%3Bto-tag%3D" ); |
|
174 _LIT8( KSVPFrom_tag, "%3Bfrom-tag%3D" ); |
|
175 _LIT8( KSVPFromPrompt, "From: "); |
|
176 const TUint KSVPFromPromptStringlength = 6; |
|
177 |
|
178 _LIT8( KSVPReplacesColonTxt, "Replaces:" ); |
|
179 _LIT8( KSVPQuesReplacesTxt, "?Replaces=" ); |
|
180 |
|
181 _LIT8(KSVPMyAnonymousAddress, "\"Anonymous\" <sip:anonymous@anonymous.invalid>"); |
|
182 _LIT8(KSVPMyAnonymousSecAddress, "\"Anonymous\" <sips:anonymous@anonymous.invalid>"); |
|
183 _LIT(KSVPAnonymous, "Anonymous"); |
|
184 _LIT8(KSVPAnonymousAddressWithoutName, "<sip:anonymous@anonymous.invalid>"); |
|
185 _LIT8(KSVPAnonymousSecAddressWithoutName, "<sips:anonymous@anonymous.invalid>"); |
|
186 _LIT8(KSVPAnonymousName8, "Anonymous"); |
|
187 _LIT(KSVPPrivateNumber, "Private"); |
|
188 |
|
189 _LIT8( KSVPEmpty, ""); |
|
190 _LIT8( KSVPPrivacy, "Privacy:" ); |
|
191 _LIT8( KSVPId, "Id" ); |
|
192 _LIT8( KSVPNone, "None" ); |
|
193 _LIT8( KSVPSupported, "Supported:" ); |
|
194 _LIT8( KSVPRequire, "Require:" ); |
|
195 _LIT8( KSVPPrecondition, "precondition" ); |
|
196 _LIT8( KSVP100rel, "100rel" ); |
|
197 const TInt KSVPClirOff = 0; |
|
198 const TInt KSVPClirOn = 1; |
|
199 const TInt KSVPClirDefault = 2; |
|
200 const TUint KSVPPrivacyLength = 13; // example: Privacy: None |
|
201 |
|
202 const TUint8 KSVPQuestionMark = '?'; |
|
203 const TUint8 KSVPColonMark = ':'; |
|
204 const TUint8 KSVPSemiColonMark = ';'; |
|
205 |
|
206 const TUint KSVPMaxLangCodeLength = 4; |
|
207 |
|
208 // ipapputils |
|
209 const TUint KSVPWlanMacAddressLength = 50; |
|
210 _LIT8 ( KSVPWlanMacAddressFrmt, "-" ); |
|
211 |
|
212 const TInt KSVPContactArrayGranularity = 5; |
|
213 |
|
214 _LIT8( KSVPMessageSipfrag, "message/sipfrag;version=2.0"); |
|
215 _LIT8( KSVPSubsStateTerminated, "Subscription-State: terminated;reason=noresource"); |
|
216 |
|
217 _LIT( KSVPS60,"S60" ); |
|
218 _LIT( KSVPCopyright, "©" ); |
|
219 _LIT(KSVPSalesModelFileName, "\\resource\\versions\\model.txt"); |
|
220 |
|
221 // Emergency constants |
|
222 const TInt KSVPEmergencyTimeout = 17000; |
|
223 // Location information constants |
|
224 const CActive::TPriority KSVPEmergencyPositioningPriority = |
|
225 CActive::EPriorityStandard; |
|
226 const TInt KSVPEmergencyDhcpDefaultPsyModuleId = 0x10283114; |
|
227 _LIT( KSVPEmergencyApplicationName, "svp.dll" ); // Requestor identifier |
|
228 const TUint32 KSVPEmergencyPositioningTimeout = 5000000; // In microseconds |
|
229 // Location related header constants |
|
230 _LIT8( KSVPEmergencyPriorityEmergency, "Priority: emergency" ); |
|
231 _LIT8( KSVPEmergencyGeolocation, "Geolocation: " ); |
|
232 _LIT8( KSVPEmergencyTagInsertedBy, ";inserted-by=" ); |
|
233 _LIT8( KSVPEmergencyTagRecipientEndpoint, ";recipient=endpoint" ); |
|
234 _LIT8( KSVPEmergencyAcceptApplicationSdp, "Accept: application/sdp" ); |
|
235 _LIT8( KSVPEmergencyApplicationPidfXml, "application/pidf+xml" ); |
|
236 _LIT8( KSVPEmergencyContentIdName, "Content-ID: " ); |
|
237 _LIT8( KSVPCidPrefix, "cid:" ); |
|
238 |
|
239 |
|
240 const TInt KSVPAnonymousBarringOff = 0; |
|
241 const TInt KSVPAnonymousBarringOn = 1; |
|
242 const TInt KSVPDoNotDisturbOff = 0; |
|
243 const TInt KSVPDoNotDisturbOn = 1; |
|
244 |
|
245 const TInt KSVPErrDnDRejection = -10; |
|
246 const TInt KSVPErrAnonymousCallRejection = -11; |
|
247 const TInt KSVPErrCodecMismatch = -12; |
|
248 const TInt KSVPErrWrongMinSE = -13; |
|
249 |
|
250 const TInt KSVPMceArrayIndexOriginator = 0; |
|
251 |
|
252 const TInt KSVPDefaultUDPRefreshInterval = 28; // 28 seconds is default |
|
253 |
|
254 // DATA TYPES |
|
255 enum TSupplementaryServicesEvent |
|
256 { |
|
257 ESVPSSDefault, |
|
258 ESVPSSAnonymousBarring, |
|
259 ESVPSSDoNotDisturb |
|
260 }; |
|
261 |
|
262 const TUint KSVPWlanTrafficStreamParamUserPriority = 6; |
|
263 |
|
264 #endif // SVPCONSTS_H |