Documentation
¶
Index ¶
- type InviteSessionHandler
- type Register
- type RegisterHandler
- type SessionKey
- type UserAgent
- 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) 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) 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 Register ¶
type Register struct {
// contains filtered or unexported fields
}
func NewRegister ¶
func (*Register) SendRegister ¶
type SessionKey ¶
type SessionKey struct { CallID sip.CallID TagID sip.MaybeString }
SessionKey - Session Key for Session Storage
func NewSessionKey ¶
func NewSessionKey(callID sip.CallID, tagID sip.MaybeString) SessionKey
NewSessionKey - Build a Session Key quickly
type UserAgent ¶
type UserAgent struct { InviteStateHandler InviteSessionHandler RegisterStateHandler RegisterHandler // contains filtered or unexported fields }
UserAgent .
func (*UserAgent) InviteWithContext ¶
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.