Versions in this module Expand all Collapse all v0 v0.0.3 Dec 27, 2021 v0.0.2 Dec 24, 2021 Changes in this version + func ParseTelUri(uriStr string) (uri sip.TelUri, err error) v0.0.1 Dec 24, 2021 Changes in this version + func GetNextHeaderLine(contents []string) (headerText string, consumed int) + func ParseAddressValue(addressText string) (displayName sip.MaybeString, uri sip.Uri, headerParams sip.Params, err error) + func ParseAddressValues(addresses string) (displayNames []sip.MaybeString, uris []sip.Uri, headerParams []sip.Params, ...) + func ParseHostPort(rawText string) (host string, port *sip.Port, err error) + func ParseMessage(msgData []byte, logger log.Logger) (sip.Message, error) + func ParseParams(source string, start uint8, sep uint8, end uint8, quoteValues bool, ...) (params sip.Params, consumed int, err error) + func ParseRequestLine(requestLine string) (method sip.RequestMethod, recipient sip.Uri, sipVersion string, err error) + func ParseSipUri(uriStr string) (uri sip.SipUri, err error) + func ParseStatusLine(statusLine string) (sipVersion string, statusCode sip.StatusCode, reasonPhrase string, err error) + func ParseUri(uriStr string) (uri sip.Uri, err error) + func SplitByWhitespace(text string) []string + type Error interface + Syntax func() bool + type HeaderParser func(headerName string, headerData string) ([]sip.Header, error) + type InvalidMessageFormat string + func (err InvalidMessageFormat) Broken() bool + func (err InvalidMessageFormat) Error() string + func (err InvalidMessageFormat) Malformed() bool + func (err InvalidMessageFormat) Syntax() bool + type InvalidStartLineError string + func (err InvalidStartLineError) Broken() bool + func (err InvalidStartLineError) Error() string + func (err InvalidStartLineError) Malformed() bool + func (err InvalidStartLineError) Syntax() bool + type Parser interface + ParseHeader func(headerText string) (headers []sip.Header, err error) + Reset func() + SetHeaderParser func(headerName string, headerParser HeaderParser) + Stop func() + String func() string + Write func(p []byte) (n int, err error) + func NewParser(output chan<- sip.Message, errs chan<- error, streamed bool, logger log.Logger) Parser + type WriteError string + func (err WriteError) Error() string + func (err WriteError) Syntax() bool