Class SIPMessageBase
Inheritance
System.Object
SIPMessageBase
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: SIPSorcery.dll
Syntax
public class SIPMessageBase
Constructors
|
Improve this Doc
View Source
SIPMessageBase()
Declaration
|
Improve this Doc
View Source
SIPMessageBase(Encoding, Encoding)
Declaration
public SIPMessageBase(Encoding sipEncoding, Encoding sipBodyEncoding)
Parameters
Type |
Name |
Description |
System.Text.Encoding |
sipEncoding |
|
System.Text.Encoding |
sipBodyEncoding |
|
Fields
|
Improve this Doc
View Source
_body
Declaration
Field Value
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
Created
Timestamp for the SIP request/response's creation.
Declaration
Field Value
Type |
Description |
System.DateTime |
|
|
Improve this Doc
View Source
The SIP request/response's headers collection.
Declaration
Field Value
|
Improve this Doc
View Source
logger
Declaration
protected static ILogger logger
Field Value
Type |
Description |
Microsoft.Extensions.Logging.ILogger |
|
|
Improve this Doc
View Source
m_allowedSIPMethods
Declaration
protected const string m_allowedSIPMethods = "ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, PRACK, REFER, REGISTER, SUBSCRIBE"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
m_CRLF
Declaration
protected const string m_CRLF = "\r\n"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
m_sipFullVersion
Declaration
protected const string m_sipFullVersion = "SIP/2.0"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
SendFromHintChannelID
When the SIP transport layer has multiple channels it will use this ID hint to choose amongst them when
sending this request/response.
Declaration
public string SendFromHintChannelID
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
SendFromHintConnectionID
For connection oriented SIP transport channels this ID provides a hint about the specific connection to use
when sending this request/response.
Declaration
public string SendFromHintConnectionID
Field Value
Type |
Description |
System.String |
|
Properties
|
Improve this Doc
View Source
Body
The optional body or payload for the SIP request/response. This Body property
should be used for Session Description Protocol (SDP) and other string payloads.
Declaration
public string Body { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
BodyBuffer
The optional binary body or payload for the SIP request/response. This Body property
generally only needs to be used in rare cases where a SIP request/response needs to
carry a binary payload. In other cases use the Body property.
Declaration
public byte[] BodyBuffer { get; set; }
Property Value
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
LocalSIPEndPoint
The local SIP socket the request/response was received on.
Declaration
public SIPEndPoint LocalSIPEndPoint { get; protected set; }
Property Value
|
Improve this Doc
View Source
RemoteSIPEndPoint
The remote SIP socket the request/response was received from.
Declaration
public SIPEndPoint RemoteSIPEndPoint { get; protected set; }
Property Value
|
Improve this Doc
View Source
SIPBodyEncoding
Declaration
public Encoding SIPBodyEncoding { get; protected set; }
Property Value
Type |
Description |
System.Text.Encoding |
|
|
Improve this Doc
View Source
SIPEncoding
Declaration
public Encoding SIPEncoding { get; protected set; }
Property Value
Type |
Description |
System.Text.Encoding |
|
Methods
|
Improve this Doc
View Source
GetBytes(String)
Declaration
protected byte[] GetBytes(string firstLine)
Parameters
Type |
Name |
Description |
System.String |
firstLine |
|
Returns
Type |
Description |
System.Byte[] |
|
Extension Methods