realtimenetprots/sipfw/SIP/ConnectionMgr/src/CSipConnection.cpp
changeset 55 36ea1f90a3d8
parent 42 69df6ed78a6a
equal deleted inserted replaced
54:e4420734a2a0 55:36ea1f90a3d8
   625 	            if(viaHeader)
   625 	            if(viaHeader)
   626 	            	{
   626 	            	{
   627 	            	domainName = viaHeader->SentByHostPort().Host().AllocL();	
   627 	            	domainName = viaHeader->SentByHostPort().Host().AllocL();	
   628 	            	}            
   628 	            	}            
   629 	        }
   629 	        }
       
   630 		CleanupStack:: PushL(domainName);
   630 	        transport = static_cast<CTransportTls*>(FindTransport( aParams, 
   631 	        transport = static_cast<CTransportTls*>(FindTransport( aParams, 
   631 	        	        								SIPStrings::StringF( SipStrConsts::ETLS ),
   632 	        	        								SIPStrings::StringF( SipStrConsts::ETLS ),
   632 	        	        								aAddress));
   633 	        	        								aAddress));
   633 			//If the domain name is of type "Text", set the domain name for the
   634 			//If the domain name is of type "Text", set the domain name for the
   634 			//TLS object.
   635 			//TLS object.
   635 			if ( ( UriUtils::HostType( *domainName ) == UriUtils::ETextHost ))
   636 			if ( ( UriUtils::HostType( *domainName ) == UriUtils::ETextHost ))
   636 		        transport->SetDomainNameL(domainName->Des());
   637 		        transport->SetDomainNameL(domainName->Des());
   637 		    delete domainName;	
   638 			CleanupStack:: PopAndDestroy(); //delete domainName;	
   638 	        break;
   639 	        break;
   639 	        }
   640 	        }
   640 	    default:
   641 	    default:
   641 	        {
   642 	        {
   642 	        User::Leave( KErrArgument );
   643 	        User::Leave( KErrArgument );
  1674 	delete iRequestQueue;
  1675 	delete iRequestQueue;
  1675 	iRequestQueue = NULL;
  1676 	iRequestQueue = NULL;
  1676 
  1677 
  1677     if ( aReleaseAllResources )
  1678     if ( aReleaseAllResources )
  1678         {
  1679         {
  1679 #if ( !defined( __WINS__ ) && !defined( __WINSCW__ ) )
       
  1680 	    // In HW RConnection must be closed when network coverage is lost	
       
  1681    	    CloseConnection();      
  1680    	    CloseConnection();      
  1682 #endif
       
  1683         }
  1681         }
  1684 	}
  1682 	}
  1685 
  1683 
  1686 // -----------------------------------------------------------------------------
  1684 // -----------------------------------------------------------------------------
  1687 // CSipConnection::DoTransportResourcesExist
  1685 // CSipConnection::DoTransportResourcesExist