equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2006 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". |
443 HBufC8* temp = HBufC8::NewLC( KSipPrefix().Length() + |
443 HBufC8* temp = HBufC8::NewLC( KSipPrefix().Length() + |
444 aReq.Recipient().Length() ); // CS: 2 |
444 aReq.Recipient().Length() ); // CS: 2 |
445 temp->Des().Copy( KSipPrefix() ); |
445 temp->Des().Copy( KSipPrefix() ); |
446 temp->Des().Append( aReq.Recipient() ); |
446 temp->Des().Append( aReq.Recipient() ); |
447 User::LeaveIfError( parser.Parse( *temp )); |
447 User::LeaveIfError( parser.Parse( *temp )); |
448 CUri8* uri = CUri8::NewLC( parser ); // CS: 3 |
448 CUri8* uri = CUri8::NewL( parser ); |
449 |
449 |
450 // Start to fill header, Remote URI |
450 // Start to fill header, Remote URI |
451 CSIPRequestElements* elems = CSIPRequestElements::NewL( uri ); |
451 CSIPRequestElements* elems = CSIPRequestElements::NewL( uri ); |
452 CleanupStack::Pop( uri ); // ownership given to elems // CS: 2 |
|
453 CleanupStack::PushL( elems ); // CS: 3 |
452 CleanupStack::PushL( elems ); // CS: 3 |
454 |
453 |
455 TUriParser8 parser3; |
454 TUriParser8 parser3; |
456 User::LeaveIfError( parser3.Parse( iProfileObserver-> |
455 User::LeaveIfError( parser3.Parse( iProfileObserver-> |
457 GiveUserAorL() )); |
456 GiveUserAorL() )); |
1537 } |
1536 } |
1538 |
1537 |
1539 // get request uri from a request |
1538 // get request uri from a request |
1540 TUriParser8 parser; |
1539 TUriParser8 parser; |
1541 User::LeaveIfError( parser.Parse( aRemoteURI )); |
1540 User::LeaveIfError( parser.Parse( aRemoteURI )); |
1542 CUri8* uri = CUri8::NewLC( parser ); |
1541 CUri8* uri = CUri8::NewL( parser ); |
1543 |
1542 |
1544 // Start to fill headres, Remote URI |
1543 // Start to fill headres, Remote URI |
1545 CSIPRequestElements* elems = CSIPRequestElements::NewL(uri); |
1544 CSIPRequestElements* elems = CSIPRequestElements::NewL( uri ); |
1546 CleanupStack::Pop( uri); // ownership given to elems |
|
1547 CleanupStack::PushL( elems ); |
1545 CleanupStack::PushL( elems ); |
1548 // To header not needed when remote uri set |
1546 // To header not needed when remote uri set |
1549 |
1547 |
1550 uri = CUri8::NewLC( parser ); |
1548 uri = CUri8::NewLC( parser ); |
1551 CSIPAddress* sipAddress = CSIPAddress::NewL( uri ); |
1549 CSIPAddress* sipAddress = CSIPAddress::NewL( uri ); |