realtimenetprots/sipfw/SIP/ConnectionMgr/src/CTransport.cpp
branchRCL_3
changeset 20 a7d1e54a7332
parent 0 307788aac0a8
child 23 8798b8c7bbfb
equal deleted inserted replaced
19:8517a9ac4a23 20:a7d1e54a7332
   608 				CleanupStack::PopAndDestroy( localaddress );
   608 				CleanupStack::PopAndDestroy( localaddress );
   609 
   609 
   610 				// Sent-by is now set for the first time, must set the port too
   610 				// Sent-by is now set for the first time, must set the port too
   611 				if ( receivePort == 0 )
   611 				if ( receivePort == 0 )
   612 		            {
   612 		            {
   613 		            receivePort = KDefaultSipPort;
   613                     //If the Transport in the outgoing request is TLS and port value = 0
       
   614                     //provide 5061 for TLS and 5060 for UDP/TCP
       
   615                     if(SIPStrings::StringF(SipStrConsts::ETLS) == viaHeader->Transport())
       
   616                         receivePort = KDefaultSipsPort;
       
   617                     else
       
   618                         receivePort = KDefaultSipPort;
   614 		            }
   619 		            }
   615 	        	}
   620 	        	}
   616 	        if ( receivePort )
   621 	        if ( receivePort )
   617 	            {
   622 	            {
   618 	            viaHeader->SentByHostPort().SetPort( receivePort );
   623 	            viaHeader->SentByHostPort().SetPort( receivePort );