diff -r bfe1f539b721 -r 9565022eef45 realtimenetprots/sipfw/SIP/ConnectionMgr/src/CTransport.cpp --- a/realtimenetprots/sipfw/SIP/ConnectionMgr/src/CTransport.cpp Mon May 03 12:50:54 2010 +0300 +++ b/realtimenetprots/sipfw/SIP/ConnectionMgr/src/CTransport.cpp Thu May 27 13:13:56 2010 +0300 @@ -610,7 +610,12 @@ // Sent-by is now set for the first time, must set the port too if ( receivePort == 0 ) { - receivePort = KDefaultSipPort; + //If the Transport in the outgoing request is TLS and port value = 0 + //provide 5061 for TLS and 5060 for UDP/TCP + if(SIPStrings::StringF(SipStrConsts::ETLS) == viaHeader->Transport()) + receivePort = KDefaultSipsPort; + else + receivePort = KDefaultSipPort; } } if ( receivePort )