Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadCert ¶
func LoadCert(keyFile, certFile string) webrtc.Certificate
Types ¶
type SipMessage ¶
SipMessage SIP message
func FromStringToSipMessage ¶
func FromStringToSipMessage(message string) (sipMessage SipMessage)
FromStringToSipMessage from string message to SipMessage
func (*SipMessage) IncreaseSeq ¶
func (sipMessage *SipMessage) IncreaseSeq()
IncreaseSeq increase CSeq
func (SipMessage) ToString ¶
func (sipMessage SipMessage) ToString() (message string)
ToString from SipMessage to string message
type Softphone ¶
type Softphone struct {
OnInvite func(inviteMessage SipMessage)
OnTrack func(remote *webrtc.TrackRemote, local *webrtc.TrackLocalStaticSample)
// contains filtered or unexported fields
}
Softphone softphone
func (*Softphone) Answer ¶
func (s *Softphone) Answer(inviteMessage SipMessage)
Answer answer an incoming call
Click to show internal directories.
Click to hide internal directories.