|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Name : CStateOld.cpp |
|
15 // Part of : SIPSec, IpSec Plugin |
|
16 // Version : SIP/5.0 |
|
17 // |
|
18 |
|
19 |
|
20 |
|
21 #include "CSipSecAgreeRecord.h" |
|
22 #include "MIpSecAgreeContextParams.h" |
|
23 #include "MIpSecMechanismParams.h" |
|
24 #include "CStateOld.h" |
|
25 |
|
26 // ---------------------------------------------------------------------------- |
|
27 // COld::COld |
|
28 // ---------------------------------------------------------------------------- |
|
29 // |
|
30 COld::COld() |
|
31 { |
|
32 } |
|
33 |
|
34 // ---------------------------------------------------------------------------- |
|
35 // COld::State |
|
36 // ---------------------------------------------------------------------------- |
|
37 // |
|
38 CState::TSecAgreeRecordState COld::State() |
|
39 { |
|
40 return EOld; |
|
41 } |
|
42 |
|
43 // ---------------------------------------------------------------------------- |
|
44 // COld::TimerExpiredL |
|
45 // ---------------------------------------------------------------------------- |
|
46 // |
|
47 void COld::TimerExpiredL( CSipSecAgreeRecord& aRec, |
|
48 TTimerId /* aTimerId */, |
|
49 TAny* /* aTimerParam */ ) |
|
50 { |
|
51 DeleteSasL( aRec ); |
|
52 } |
|
53 |
|
54 // ---------------------------------------------------------------------------- |
|
55 // COld::ReguestL |
|
56 // A non-REGISTER request is being sent to network. |
|
57 // ---------------------------------------------------------------------------- |
|
58 // |
|
59 void COld::ReguestL( CSipSecAgreeRecord& aRec, |
|
60 CSIPRequest& /* aRequest */, |
|
61 TSIPTransportParams& /* aTransportParams */, |
|
62 const TDesC8& /* aOutboundProxy */ ) |
|
63 { |
|
64 // 2 x transaction timeout (since timeouted ta is retried without sigcomp) |
|
65 const TUint KTATimeoutMultiplier = 128; |
|
66 aRec.StartTimerL( aRec.iParams.MechParams().T1() * KTATimeoutMultiplier ); |
|
67 aRec.NextState( EDying ); |
|
68 } |
|
69 |
|
70 // End of File |