Show / Hide Table of Contents

Class HepPacket

This class can produce a serialised Homer Encapsulation Protocol (HEP) packet. The implementation has only been done to accommodate packet types required by this library (at the time of writing the sole type is SIP).

Inheritance
System.Object
HepPacket
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()
Namespace: SIPSorcery.Net
Assembly: SIPSorcery.dll
Syntax
public class HepPacket

Methods

| Improve this Doc View Source

GetBytes(SIPEndPoint, SIPEndPoint, DateTime, UInt32, String, String)

Gets a serialised HEP packet for a SIP request or response that can be sent to a HOMER server.

Declaration
public static byte[] GetBytes(SIPEndPoint srcEndPoint, SIPEndPoint dstEndPoint, DateTime timestamp, uint agentID, string password, string payload)
Parameters
Type Name Description
SIPEndPoint srcEndPoint

The end point that sent the SIP request or response.

SIPEndPoint dstEndPoint

The end point that the SIP request or response was sent to.

System.DateTime timestamp

The timestamp the request or response was generated.

System.UInt32 agentID

An agent ID that is used by the HOMER server to identify the agent generating HEP packets. Ideally should be unique amongst all agents logging to the same HOMER server.

System.String password

The password required by the HOMER server. Can be set to null if no password is required. Default value for HOMER5 and 7 is 'myHep".

System.String payload

The SIP request or response.

Returns
Type Description
System.Byte[]

An array of bytes representing the serialised HEP packet and that is ready for transmission to a HOMER server.

Extension Methods

JSONWriter.ToJson(Object)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX