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 DefaultUserAgent + type RequestHandler func(req sip.Request, tx sip.ServerTransaction) + type RequiresChallengeHandler func(req sip.Request) bool + type ServerAuthManager struct + Authenticator *auth.ServerAuthorizer + RequiresChallenge RequiresChallengeHandler + type SipStack struct + func NewSipStack(config *SipStackConfig) *SipStack + func (s *SipStack) AckInviteRequest(request sip.Request, response sip.Response) + func (s *SipStack) CancelRequest(request sip.Request, response sip.Response) + func (s *SipStack) GetNetworkInfo(protocol string) *transport.Target + func (s *SipStack) Listen(protocol string, listenAddr string) error + func (s *SipStack) ListenTLS(protocol string, listenAddr string, options *transport.TLSConfig) error + func (s *SipStack) Log() log.Logger + func (s *SipStack) OnConnectionError(handler func(err *transport.ConnectionError)) + func (s *SipStack) OnRequest(method sip.RequestMethod, handler RequestHandler) error + func (s *SipStack) RememberInviteRequest(request sip.Request) + func (s *SipStack) Request(req sip.Request) (sip.ClientTransaction, error) + func (s *SipStack) Respond(res sip.Response) (sip.ServerTransaction, error) + func (s *SipStack) RespondOnRequest(request sip.Request, status sip.StatusCode, reason, body string, ...) (sip.ServerTransaction, error) + func (s *SipStack) Send(msg sip.Message) error + func (s *SipStack) Shutdown() + type SipStackConfig struct + Dns string + Extensions []string + Host string + MsgMapper sip.MessageMapper + ServerAuthManager ServerAuthManager + UserAgent string