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