Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeginTransaction ¶
type BeginTransaction struct {
Request BeginTransactionRequest `json:"request"`
}
BeginTransaction is the begin transaction message
type BeginTransactionRequest ¶
type BeginTransactionRequest struct { Tenant string `json:"tenant"` TransactionTag string `json:"transaction_tag"` AccountTag string `json:"account_tag"` DestinationAccountTag string `json:"destination_account_tag"` Source string `json:"source"` Destination string `json:"destination"` ProductTag string `json:"product_tag,omitempty"` Tags []string `json:"tags,omitempty"` TimestampBegin string `json:"timestamp_begin"` }
BeginTransactionRequest is the begin transaction request object
type Call ¶
type Call struct { Tenant string `json:"tenant"` TransactionTag string `json:"transaction_tag"` AccountTag string `json:"account_tag"` DestinationAccountTag string `json:"destination_account_tag"` Source string `json:"source"` Destination string `json:"destination"` CSeq string `json:"cseq"` TimestampInvite time.Time `json:"timestamp_begin"` TimestampAck time.Time `json:"timestamp_ack"` TimestampBye time.Time `json:"timestamp_bye"` }
Call stores the status of a call in the state manager
type EndTransaction ¶
type EndTransaction struct {
Request EndTransactionRequest `json:"request"`
}
EndTransaction is the begin transaction message
type EndTransactionRequest ¶
type EndTransactionRequest struct { Tenant string `json:"tenant"` TransactionTag string `json:"transaction_tag"` AccountTag string `json:"account_tag"` DestinationAccountTag string `json:"destination_account_tag"` TimestampEnd string `json:"timestamp_end"` }
EndTransactionRequest is the begin transaction request object
type SIPMessage ¶
type SIPMessage struct { *sipparser.SipMsg AccountTag string DestinationAccountTag string Timestamp time.Time }
SIPMessage represents a SIP message extracted from an HEP message
func SIPMessageFromHEP ¶
func SIPMessageFromHEP(hep *decoder.HEP) *SIPMessage
SIPMessageFromHEP returns a HEPMessage from a decoded HEP packet
Click to show internal directories.
Click to hide internal directories.