realtimenetprots/sipfw/SIP/ConnectionMgr/src/CSipConnection.cpp
changeset 42 69df6ed78a6a
parent 0 307788aac0a8
child 44 0dcb073356a5
child 55 36ea1f90a3d8
equal deleted inserted replaced
37:0295359a7673 42:69df6ed78a6a
   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