realtimenetprots/sipfw/SIP/ConnectionMgr/src/CSipConnection.cpp
branchRCL_3
changeset 19 b5e99d8877c7
parent 0 307788aac0a8
child 20 0dcb073356a5
equal deleted inserted replaced
18:f54bfd820e04 19:b5e99d8877c7
   620 	        else
   620 	        else
   621 	        {
   621 	        {
   622 	        	//Message is response. Host part will be extracted from the top
   622 	        	//Message is response. Host part will be extracted from the top
   623 	        	//Via header
   623 	        	//Via header
   624 	            CSIPViaHeader* viaHeader = TopViaHeader( &aMessage );
   624 	            CSIPViaHeader* viaHeader = TopViaHeader( &aMessage );
   625 	            domainName = viaHeader->SentByHostPort().Host().AllocL();	            
   625 	            if(viaHeader)
       
   626 	            	{
       
   627 	            	domainName = viaHeader->SentByHostPort().Host().AllocL();	
       
   628 	            	}            
   626 	        }
   629 	        }
   627 	        transport = static_cast<CTransportTls*>(FindTransport( aParams, 
   630 	        transport = static_cast<CTransportTls*>(FindTransport( aParams, 
   628 	        	        								SIPStrings::StringF( SipStrConsts::ETLS ),
   631 	        	        								SIPStrings::StringF( SipStrConsts::ETLS ),
   629 	        	        								aAddress));
   632 	        	        								aAddress));
   630 			//If the domain name is of type "Text", set the domain name for the
   633 			//If the domain name is of type "Text", set the domain name for the