sipvoipprovider/src/svpmosession.cpp
branchRCL_3
changeset 11 6134b5029079
parent 10 ed1e38b404e5
child 18 8c9c07ad8b6b
equal deleted inserted replaced
10:ed1e38b404e5 11:6134b5029079
     1 /*
     1 /*
     2 * Copyright (c) 2006-2008 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   111     HBufC8* uri = CompleteUriL( aRecipient,
   111     HBufC8* uri = CompleteUriL( aRecipient,
   112                                 *profile,
   112                                 *profile,
   113                                 aSecurityStatus,
   113                                 aSecurityStatus,
   114                                 userEqphone );
   114                                 userEqphone );
   115     CleanupStack::PushL( uri );
   115     CleanupStack::PushL( uri );
       
   116     
       
   117     // Add P-Preferred-Identity header if CLIR is on  
       
   118     if ( iSVPUtility.IsCLIROnL() )
       
   119         {
       
   120         const TDesC8* userAor = NULL;
       
   121         TInt err = profile->GetParameter( KSIPUserAor, userAor );
       
   122         
       
   123         if ( !err )
       
   124             {
       
   125             iSVPUtility.AddPPreferredIdentityToUserHeadersL( 
       
   126                 *aUserHeaders, *userAor );
       
   127             }
       
   128         }
   116     
   129     
   117     // create Mce out session 
   130     // create Mce out session 
   118     if ( KSVPStatusNonSecure == aSecurityStatus )
   131     if ( KSVPStatusNonSecure == aSecurityStatus )
   119         {
   132         {
   120         // create non-secure session
   133         // create non-secure session