Documentation ¶
Index ¶
- type SipStack
- func (ed *SipStack) ACK(handler func(message.SipEventObject))
- func (ed *SipStack) BYE(handler func(message.SipEventObject))
- func (ed *SipStack) CANCEL(handler func(message.SipEventObject))
- func (ed *SipStack) CreateListenPoint(protocol string, host string, port int) message.ListeningPoint
- func (ed *SipStack) GetTransactionManager() *transaction.TransactionManager
- func (ed *SipStack) INFO(handler func(message.SipEventObject))
- func (ed *SipStack) INVITE(handler func(message.SipEventObject))
- func (ed *SipStack) IsAlive() bool
- func (ed *SipStack) MESSAGE(handler func(message.SipEventObject))
- func (ed *SipStack) NOTIFY(handler func(message.SipEventObject))
- func (ed *SipStack) OPTIONS(handler func(message.SipEventObject))
- func (ed *SipStack) PRACK(handler func(message.SipEventObject))
- func (ed *SipStack) PUBLISH(handler func(message.SipEventObject))
- func (ed *SipStack) REFER(handler func(message.SipEventObject))
- func (ed *SipStack) REGISTER(handler func(message.SipEventObject))
- func (ed *SipStack) SUBSCRIBE(handler func(message.SipEventObject))
- func (ed *SipStack) SetSipListener(listener message.SipListener)
- func (ed *SipStack) Start()
- func (ed *SipStack) Stop()
- func (ed *SipStack) UPDATE(handler func(message.SipEventObject))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SipStack ¶
type SipStack struct { Name string ListeningPoints []message.ListeningPoint OutputPoint chan message.SipMsg InputPoint chan message.SipMsg Alive bool TransManager *transaction.TransactionManager Dialogs []dialog.Dialog TransportChannel chan message.SipEventObject // contains filtered or unexported fields }
SipStack has multiple protocol listning points
func (*SipStack) ACK ¶
func (ed *SipStack) ACK(handler func(message.SipEventObject))
ACK used to attach a callback function when an ACK is received
func (*SipStack) BYE ¶
func (ed *SipStack) BYE(handler func(message.SipEventObject))
BYE used to attach a callback function when an BYE is received
func (*SipStack) CANCEL ¶
func (ed *SipStack) CANCEL(handler func(message.SipEventObject))
CANCEL used to attach a callback function when an CANCEL is received
func (*SipStack) CreateListenPoint ¶
func (ed *SipStack) CreateListenPoint(protocol string, host string, port int) message.ListeningPoint
CreateListenPoint creates listening point to the event dispatcher
func (*SipStack) GetTransactionManager ¶
func (ed *SipStack) GetTransactionManager() *transaction.TransactionManager
GetTransactionManager returns TransactionManager
func (*SipStack) INFO ¶
func (ed *SipStack) INFO(handler func(message.SipEventObject))
INFO used to attach a callback function when an INFO is received
func (*SipStack) INVITE ¶
func (ed *SipStack) INVITE(handler func(message.SipEventObject))
INVITE used to attach a callback function when an INVITE is received
func (*SipStack) MESSAGE ¶
func (ed *SipStack) MESSAGE(handler func(message.SipEventObject))
MESSAGE used to attach a callback function when an MESSAGE is received
func (*SipStack) NOTIFY ¶
func (ed *SipStack) NOTIFY(handler func(message.SipEventObject))
NOTIFY used to attach a callback function when an NOTIFY is received
func (*SipStack) OPTIONS ¶
func (ed *SipStack) OPTIONS(handler func(message.SipEventObject))
OPTIONS used to attach a callback function when an OPTIONS is received
func (*SipStack) PRACK ¶
func (ed *SipStack) PRACK(handler func(message.SipEventObject))
PRACK used to attach a callback function when an PRACK is received
func (*SipStack) PUBLISH ¶
func (ed *SipStack) PUBLISH(handler func(message.SipEventObject))
PUBLISH used to attach a callback function when an PUBLISH is received
func (*SipStack) REFER ¶
func (ed *SipStack) REFER(handler func(message.SipEventObject))
REFER used to attach a callback function when an REFER is received
func (*SipStack) REGISTER ¶
func (ed *SipStack) REGISTER(handler func(message.SipEventObject))
REGISTER used to attach a callback function when an REGISTER is received
func (*SipStack) SUBSCRIBE ¶
func (ed *SipStack) SUBSCRIBE(handler func(message.SipEventObject))
SUBSCRIBE used to attach a callback function when an SUBSCRIBE is received
func (*SipStack) SetSipListener ¶
func (ed *SipStack) SetSipListener(listener message.SipListener)
SetSipListener sets a struct that follows the SipListener interface
func (*SipStack) UPDATE ¶
func (ed *SipStack) UPDATE(handler func(message.SipEventObject))
UPDATE used to attach a callback function when an UPDATE is received