Documentation
¶
Overview ¶
Package softphone provides abstractions for SIP over Websocket
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bdy ¶
type Bdy struct {
XMLName xml.Name `xml:"Bdy"`
SrvLvl string `xml:"SrvLvl,attr"`
SrvLvlExt string `xml:"SrvLvlExt,attr"`
Phn string `xml:"Phn,attr"`
Nm string `xml:"Nm,attr"`
ToPhn string `xml:"ToPhn,attr"`
ToNm string `xml:"ToNm,attr"`
RecURL string `xml:"RecUrl,attr"`
}
Bdy ...
type Hdr ¶
type Hdr struct {
XMLName xml.Name `xml:"Hdr"`
SID string `xml:"SID,attr"`
Req string `xml:"Req,attr"`
From string `xml:"From,attr"`
To string `xml:"To,attr"`
Cmd string `xml:"Cmd,attr"`
}
Hdr ...
type SIPInfoResponse ¶
type SIPInfoResponse struct {
Username string `json:"username"`
Password string `json:"password"`
AuthorizationID string `json:"authorizationId"`
Domain string `json:"domain"`
OutboundProxy string `json:"outboundProxy"`
Transport string `json:"transport"`
Certificate string `json:"certificate"`
SwitchBackInterval int `json:"switchBackInterval"`
}
SIPInfoResponse ...
type SIPMessage ¶
type SIPMessage struct {
Body string
// contains filtered or unexported fields
}
SIPMessage ...
type Softphone ¶
type Softphone struct {
OnInvite func(inviteMessage SIPMessage) // sipmessage.go
FakeEmail string
// contains filtered or unexported fields
}
Softphone ...
func (*Softphone) CloseToInvite ¶
func (softphone *Softphone) CloseToInvite()
CloseToInvite removes the previously set invite listener.
func (*Softphone) OpenToInvite ¶
func (softphone *Softphone) OpenToInvite()
OpenToInvite adds a handler that responds to any incoming invites.
Click to show internal directories.
Click to hide internal directories.