sipvoipprovider/src/svpmosession.cpp
branchRCL_3
changeset 11 6134b5029079
parent 10 ed1e38b404e5
child 18 8c9c07ad8b6b
--- a/sipvoipprovider/src/svpmosession.cpp	Wed Mar 31 21:20:05 2010 +0300
+++ b/sipvoipprovider/src/svpmosession.cpp	Wed Apr 14 15:49:55 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2006-2008 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
@@ -114,6 +114,19 @@
                                 userEqphone );
     CleanupStack::PushL( uri );
     
+    // Add P-Preferred-Identity header if CLIR is on  
+    if ( iSVPUtility.IsCLIROnL() )
+        {
+        const TDesC8* userAor = NULL;
+        TInt err = profile->GetParameter( KSIPUserAor, userAor );
+        
+        if ( !err )
+            {
+            iSVPUtility.AddPPreferredIdentityToUserHeadersL( 
+                *aUserHeaders, *userAor );
+            }
+        }
+    
     // create Mce out session 
     if ( KSVPStatusNonSecure == aSecurityStatus )
         {