stack

package
v0.0.0-...-c034bfd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const EXPIRES_TIME = 3600
View Source
const TIME_LAYOUT = "2024-01-01T00:00:00"

Variables

This section is empty.

Functions

func NewInviteRequest

func NewInviteRequest(body []byte, subject string, conf OutboundConfig) (*sip.Request, error)

func NewMessageRequest

func NewMessageRequest(body []byte, conf OutboundConfig) (*sip.Request, error)

func NewRegisterRequest

func NewRegisterRequest(conf OutboundConfig) (*sip.Request, error)

func NewRegisterResponse

func NewRegisterResponse(req *sip.Request, code sip.StatusCode, reason string) *sip.Response

func NewRequest

func NewRequest(method sip.RequestMethod, body []byte, conf OutboundConfig) (*sip.Request, error)

func NewUnauthorizedResponse

func NewUnauthorizedResponse(req *sip.Request, code sip.StatusCode, reason, nonce, realm string) *sip.Response

Types

type OutboundConfig

type OutboundConfig struct {
	Transport string
	Via       string
	From      string
	To        string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL