Versions in this module Expand all Collapse all v1 v1.1.8 Oct 17, 2022 v1.1.7 Oct 17, 2022 Changes in this version + const NonceExpire + func AuthorizeRequest(request sip.Request, response sip.Response, user, password sip.MaybeString) error + type AuthSession struct + type Authorization struct + func AuthFromValue(value string) *Authorization + func (auth *Authorization) CalcResponse(request sip.Request) *Authorization + func (auth *Authorization) SetMethod(method string) *Authorization + func (auth *Authorization) SetPassword(password string) *Authorization + func (auth *Authorization) SetUri(uri string) *Authorization + func (auth *Authorization) SetUsername(username string) *Authorization + func (auth *Authorization) String() string + type Authorizer interface + AuthorizeRequest func(request sip.Request, response sip.Response) error + type ClientAuthorizer struct + func NewClientAuthorizer(u string, p string) *ClientAuthorizer + func (auth *ClientAuthorizer) AuthorizeRequest(request sip.Request, response sip.Response) error + type RequestCredentialCallback func(username string) (password string, ha1 string, err error) + type ServerAuthorizer struct + func NewServerAuthorizer(callback RequestCredentialCallback, realm string, authInt bool) *ServerAuthorizer + func (auth *ServerAuthorizer) Authenticate(request sip.Request, tx sip.ServerTransaction) (string, bool)