Documentation
¶
Index ¶
- type InviteSessionHandler
- type Refer
- type ReferTo
- type ReferredBy
- type Register
- type RegisterHandler
- type UserAgent
- func (ua *UserAgent) HandleBye(request sip.Request, tx sip.ServerTransaction)
- func (ua *UserAgent) Invite(profile *account.Profile, target sip.Uri, recipient sip.SipUri, body *string) (*session.Session, error)
- func (ua *UserAgent) InviteWithContext(ctx context.Context, profile *account.Profile, target sip.Uri, ...) (*session.Session, error)
- func (ua *UserAgent) InviteWithCustomHeaders(profile *account.Profile, target sip.Uri, recipient sip.SipUri, ...) (*session.Session, error)
- func (ua *UserAgent) Log() log.Logger
- func (ua *UserAgent) Request(req *sip.Request) (sip.ClientTransaction, error)
- func (ua *UserAgent) RequestWithContext(ctx context.Context, request sip.Request, authorizer sip.Authorizer, ...) (sip.Response, error)
- func (ua *UserAgent) SendRefer(profile *account.Profile, recipient sip.SipUri, expires uint32, ...) (*Refer, error)
- func (ua *UserAgent) SendRegister(profile *account.Profile, recipient sip.SipUri, expires uint32, ...) (*Register, error)
- func (ua *UserAgent) Shutdown()
- type UserAgentConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InviteSessionHandler ¶
type InviteSessionHandler func(s *session.Session, req *sip.Request, resp *sip.Response, status session.Status)
InviteSessionHandler .
type Refer ¶ added in v1.1.8
type Refer struct {
// contains filtered or unexported fields
}
type ReferredBy ¶ added in v1.1.8
type ReferredBy string
func (*ReferredBy) Clone ¶ added in v1.1.8
func (callId *ReferredBy) Clone() sip.Header
func (*ReferredBy) Equals ¶ added in v1.1.8
func (callId *ReferredBy) Equals(other interface{}) bool
func (*ReferredBy) Name ¶ added in v1.1.8
func (callId *ReferredBy) Name() string
func (ReferredBy) String ¶ added in v1.1.8
func (callId ReferredBy) String() string
func (ReferredBy) Value ¶ added in v1.1.8
func (callId ReferredBy) Value() string
type Register ¶
type Register struct {
// contains filtered or unexported fields
}
func NewRegister ¶
func (*Register) SendRegister ¶
type UserAgent ¶
type UserAgent struct { InviteStateHandler InviteSessionHandler RegisterStateHandler RegisterHandler // contains filtered or unexported fields }
UserAgent .
func (*UserAgent) HandleBye ¶ added in v1.1.12
func (ua *UserAgent) HandleBye(request sip.Request, tx sip.ServerTransaction)
func (*UserAgent) InviteWithContext ¶
func (*UserAgent) InviteWithCustomHeaders ¶
func (*UserAgent) RequestWithContext ¶
func (ua *UserAgent) RequestWithContext(ctx context.Context, request sip.Request, authorizer sip.Authorizer, waitForResult bool, attempt int) (sip.Response, error)
RequestWithContext .
func (*UserAgent) SendRegister ¶
Click to show internal directories.
Click to hide internal directories.