interfaces

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListeningPoint

type ListeningPoint interface {
	Read() SipEventObject
	Build(string, int)
	Start()
	GetHost() string
	GetPort() int
	SetTransportChannel(chan SipEventObject)
	Send(string, string, string) error
}

ListeningPoint interface for listening point

type SipEventObject

type SipEventObject interface {
	GetSipMessage() *message.SipMsg
	SetSipMessage(*message.SipMsg)
	GetTransaction() Transaction
	SetTransaction(Transaction)
	SetListeningPoint(ListeningPoint)
	GetListeningPoint() ListeningPoint
}

SipEventObject interface for SIP events

type SipListener

type SipListener interface {
	HandleRequests(SipEventObject)
	HandleResponses(SipEventObject)
}

SipListener interface for sip listener i.e. Your Application

type Transaction

type Transaction interface {
	GetBranchID() string
	GetOrigin() *message.SipMsg
	SetListeningPoint(ListeningPoint)
	Send(*message.SipMsg, string, string)
	Receive(*message.SipMsg)
	GetLastMessage() *message.SipMsg
	GetServerTransactionID() string
	SetLastMessage(*message.SipMsg)
	GetListeningPoint() ListeningPoint
}

Transaction interface for SIP transactions

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL