public new string ToString()
{
try
{
string reasonPhrase = (!ReasonPhrase.IsNullOrBlank()) ? " " + ReasonPhrase : null;
string message =
RTSPVersion + "/" + RTSPMajorVersion + "." + RTSPMinorVersion + " " + StatusCode + reasonPhrase + m_CRLF +
this.Header.ToString();
if (Body != null)
{
message += m_CRLF + Body;
}
else
{
message += m_CRLF;
}
return message;
}
catch(Exception excp)
{
logger.Error("Exception RTSPResponse ToString. " + excp.Message);
throw excp;
}
}