mmsharing/mmshavailability/tsrc/ut_availability/src/musavacapabilitytesthelper.cpp
branchRCL_3
changeset 22 73a1feb507fb
parent 0 f0cf47e981f9
child 23 bc78a40cd63c
equal deleted inserted replaced
21:33a5d2bbf6fc 22:73a1feb507fb
    24                                            const TDesC8& aRequestUri,
    24                                            const TDesC8& aRequestUri,
    25                                            const TDesC8& aFrom,
    25                                            const TDesC8& aFrom,
    26                                            const TDesC8& aAcceptContact, 
    26                                            const TDesC8& aAcceptContact, 
    27                                            const TDesC8& aContact,
    27                                            const TDesC8& aContact,
    28                                            const TDesC8& aAccept,
    28                                            const TDesC8& aAccept,
    29                                            const TDesC8& aUserAgent)
    29                                            const TDesC8& aUserAgent )
    30     {
    30     {
    31     
    31     
    32     CSIPServerTransaction* srvtransaction = 
    32     CSIPServerTransaction* srvtransaction = 
    33         CSIPServerTransaction::NewL( SIPStrings::StringF( SipStrConsts::EOptions )); 
    33         CSIPServerTransaction::NewL( SIPStrings::StringF( SipStrConsts::EOptions )); 
    34     CleanupStack::PushL( srvtransaction );
    34     CleanupStack::PushL( srvtransaction );
   111     
   111     
   112     requestelements->SetFromHeaderL(fromheader); 
   112     requestelements->SetFromHeaderL(fromheader); 
   113     CleanupStack::Pop( fromheader );
   113     CleanupStack::Pop( fromheader );
   114     requestelements->SetToHeaderL(toheader); 
   114     requestelements->SetToHeaderL(toheader); 
   115     CleanupStack::Pop( toheader );
   115     CleanupStack::Pop( toheader );
   116   
   116 
       
   117     
   117     requestelements->SetMethodL( SIPStrings::StringF( SipStrConsts::EOptions ) );
   118     requestelements->SetMethodL( SIPStrings::StringF( SipStrConsts::EOptions ) );
   118     
   119     
   119     srvtransaction->SetRequestElements( requestelements );
   120     srvtransaction->SetRequestElements( requestelements );
   120     CleanupStack::Pop( requestelements );
   121     CleanupStack::Pop( requestelements );
   121     CleanupStack::Pop( srvtransaction );
   122     CleanupStack::Pop( srvtransaction );
   130                                            const TDesC8& aFrom,
   131                                            const TDesC8& aFrom,
   131                                            const TDesC8& aAcceptContact, 
   132                                            const TDesC8& aAcceptContact, 
   132                                            const TDesC8& aContact,
   133                                            const TDesC8& aContact,
   133                                            const TDesC8& aAccept,
   134                                            const TDesC8& aAccept,
   134                                            const TDesC8& aUserAgent,
   135                                            const TDesC8& aUserAgent,
   135                                            const TDesC8& aAssertId,
   136                                            const TDesC8& aAssertId )
   136                                            const TDesC8& aSdp)
       
   137     {
   137     {
   138     
   138     
   139     CSIPServerTransaction* srvtransaction = 
   139     CSIPServerTransaction* srvtransaction = 
   140         CSIPServerTransaction::NewL( SIPStrings::StringF( SipStrConsts::EOptions )); 
   140         CSIPServerTransaction::NewL( SIPStrings::StringF( SipStrConsts::EOptions )); 
   141     CleanupStack::PushL( srvtransaction );
   141     CleanupStack::PushL( srvtransaction );
   230     requestelements->SetToHeaderL(toheader); 
   230     requestelements->SetToHeaderL(toheader); 
   231     CleanupStack::Pop( toheader );
   231     CleanupStack::Pop( toheader );
   232 
   232 
   233     
   233     
   234     requestelements->SetMethodL( SIPStrings::StringF( SipStrConsts::EOptions ) );
   234     requestelements->SetMethodL( SIPStrings::StringF( SipStrConsts::EOptions ) );
   235     
       
   236     CSIPMessageElements& message = requestelements->MessageElements();
       
   237     if ( aSdp.Length() > 0 )
       
   238         {
       
   239         CSIPContentTypeHeader* contenttype = 
       
   240             CSIPContentTypeHeader::NewLC( KMUSAVASIPMediaTypeApplication,
       
   241                                          KMUSAVASIPMediaSubTypeSDP );
       
   242         HBufC8* content = aSdp.AllocLC();
       
   243         
       
   244         message.SetContentL( content, contenttype );
       
   245         CleanupStack::Pop( content );
       
   246         CleanupStack::Pop( contenttype );      
       
   247         }
       
   248     
   235     
   249     srvtransaction->SetRequestElements( requestelements );
   236     srvtransaction->SetRequestElements( requestelements );
   250     CleanupStack::Pop( requestelements );
   237     CleanupStack::Pop( requestelements );
   251     CleanupStack::Pop( srvtransaction );
   238     CleanupStack::Pop( srvtransaction );
   252 
   239