diff -r a858c2cf6a45 -r 7cdef8deefa0 realtimenetprots/sipfw/SIP/ConnectionMgr/src/CTransport.cpp --- a/realtimenetprots/sipfw/SIP/ConnectionMgr/src/CTransport.cpp Tue Jul 06 14:39:54 2010 +0300 +++ b/realtimenetprots/sipfw/SIP/ConnectionMgr/src/CTransport.cpp Wed Aug 18 10:07:48 2010 +0300 @@ -1489,7 +1489,15 @@ { uri.SIPURI()->SetSIPS( EFalse ); } - } //end if (aMessage->IsRequest) + //set the port information as per sip scheme and if there is no + //port information set in the contact header.= + if(uri.SIPURI()->IsSIPSURI() && (0 == uri.SIPURI()->HostPort().Port())) + uri.SIPURI()->HostPort().SetPort(KDefaultSipsPort); + else if ((EFalse == uri.SIPURI()->IsSIPSURI()) && (0 == uri.SIPURI()->HostPort().Port())) + uri.SIPURI()->HostPort().SetPort(KDefaultSipPort); + else + {} + } //end if (aMessage->IsRequest) } //end if (uri.IsSIPURI()) } //end if(sipaddr) } //end while