Documentation ¶
Index ¶
- type UserAgent
- func (ua *UserAgent) BuildRequest(method sip.RequestMethod, from *sip.Address, to *sip.Address, ...) (*sip.Request, error)
- func (ua *UserAgent) Invite(profile *account.Profile, target sip.SipUri, body *string) (*invite.Session, error)
- func (ua *UserAgent) RemoveSess(callID *sip.CallID)
- func (ua *UserAgent) Request(req *sip.Request)
- func (ua *UserAgent) RequestWithContext(ctx context.Context, request sip.Request, authorizer sip.Authorizer) (sip.Response, error)
- func (ua *UserAgent) SendBye(profile *account.Profile, callID *sip.CallID, target sip.SipUri)
- func (ua *UserAgent) SendRegister(profile *account.Profile, target sip.SipUri, expires uint32)
- func (ua *UserAgent) Shutdown()
- type UserAgentConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserAgent ¶
type UserAgent struct { InviteStateHandler invite.InviteSessionHandler RegisterStateHandler account.RegisterHandler // contains filtered or unexported fields }
UserAgent .
func NewUserAgent ¶
func NewUserAgent(config *UserAgentConfig, logger log.Logger) *UserAgent
NewUserAgent .
func (*UserAgent) BuildRequest ¶
func (*UserAgent) RemoveSess ¶
func (*UserAgent) RequestWithContext ¶
func (ua *UserAgent) RequestWithContext(ctx context.Context, request sip.Request, authorizer sip.Authorizer) (sip.Response, error)
RequestWithContext .
func (*UserAgent) SendRegister ¶
type UserAgentConfig ¶
Click to show internal directories.
Click to hide internal directories.