private void updateContactHeaderPort(int localPort,SIPMessage message){
  if (message != null && message.getContactHeader() != null) {
    ContactHeader contactHeader=message.getContactHeader();
    Address contactAddress=contactHeader.getAddress();
    contactAddress.setPort(localPort);
  }
}

private void updateContactHeaderPort ( int localPort , SIPMessage message ) { if ( message != null && message . getContactHeader ( ) != null ) { ContactHeader contactHeader = message . getContactHeader ( ) ; Address contactAddress = contactHeader . getAddress ( ) ; contactAddress . setPort ( localPort ) ; } }
update port of contact header to reflect local port
