public string ToParameterlessString()
{
try
{
string uriStr = Scheme.ToString() + SCHEME_ADDR_SEPARATOR;
uriStr = (User != null) ? uriStr + User + USER_HOST_SEPARATOR + Host : uriStr + Host;
// If the URI's protocol is not implied already set the transport parameter.
if (Scheme != SIPSchemesEnum.sips && Protocol != SIPProtocolsEnum.udp && !Parameters.Has(m_uriParamTransportKey))
{
uriStr += PARAM_TAG_DELIMITER + m_uriParamTransportKey + TAG_NAME_VALUE_SEPERATOR + Protocol.ToString();
}
return uriStr;
}
catch (Exception excp)
{
logger.Error("Exception SIPURI ToParamaterlessString. " + excp.Message);
throw excp;
}
}