ToParameterlessString() public method

Returns a string representation of the URI with any parameter and headers ommitted except for the transport parameter. The string returned by this function is used amonst other things to match Route headers set by this SIP agent.
public ToParameterlessString ( ) : string
return string
Example #1
0
        public string ToParameterlessString()
        {
            try
            {
                string userFieldStr = null;

                if (Name != null)
                {
                    userFieldStr = "\"" + Name + "\" ";
                }

                userFieldStr += "<" + URI.ToParameterlessString() + ">";

                return(userFieldStr);
            }
            catch (Exception excp)
            {
                logger.LogError("Exception SIPUserField ToParameterlessString. " + excp.Message);
                throw;
            }
        }