Versions in this module Expand all Collapse all v0 v0.0.1 Jul 31, 2023 Changes in this version + var Version = "0.0.0" + type RequestHandler func(req sip.Request, tx sip.ServerTransaction) + type RequestWithContextOption interface + ApplyRequestWithContext func(options *RequestWithContextOptions) + func WithAuthorizer(authorizer sip.Authorizer) RequestWithContextOption + func WithResponseHandler(handler func(res sip.Response, request sip.Request)) RequestWithContextOption + type RequestWithContextOptions struct + Authorizer sip.Authorizer + ResponseHandler func(res sip.Response, request sip.Request) + type Server interface + Listen func(network, addr string, options ...transport.ListenOption) error + OnRequest func(method sip.RequestMethod, handler RequestHandler) error + Request func(req sip.Request) (sip.ClientTransaction, error) + RequestWithContext func(ctx context.Context, request sip.Request, options ...RequestWithContextOption) (sip.Response, error) + Respond func(res sip.Response) (sip.ServerTransaction, error) + RespondOnRequest func(request sip.Request, status sip.StatusCode, reason, body string, ...) (sip.ServerTransaction, error) + Send func(msg sip.Message) error + Shutdown func() + func NewServer(config ServerConfig, tpFactory TransportLayerFactory, ...) Server + type ServerConfig struct + Dns string + Extensions []string + Host string + MsgMapper sip.MessageMapper + UserAgent string + type TransactionLayerFactory func(tpl sip.Transport, logger log.Logger) transaction.Layer + type TransportLayerFactory func(ip net.IP, dnsResolver *net.Resolver, msgMapper sip.MessageMapper, ...) transport.Layer