package
0.0.0-20250206102957-99cfb663cf0c
Repository: https://github.com/ghettovoice/gosip.git
Documentation: pkg.go.dev
# Functions
GetNextHeaderLine extract the next logical header line from the message.
No description provided by the author
NewParser create a new Parser.
ParseAddressValue parses an address - such as from a From, To, or Contact header.
ParseAddressValues parses a comma-separated list of addresses, returning any display names and header params, as well as the SIP URIs themselves.
ParseHostPort parse a text representation of a host[:port] pair.
ParseMessage parse a SIP message by creating a parser on the fly.
ParseParams is a general utility method for parsing 'key=value' parameters.
ParseRequestLine parse the first line of a SIP request, e.g:
INVITE [email protected] SIP/2.0 REGISTER [email protected] SIP/1.0.
ParseSipUri converts a string representation of a SIP or SIPS URI into a SipUri object.
ParseStatusLine parse the first line of a SIP response, e.g:
SIP/2.0 200 OK SIP/1.0 403 Forbidden.
ParseUri converts a string representation of a URI into a Uri object.
SplitByWhitespace splits the given string into sections, separated by one or more characters from c_ABNF_WS.
# Structs
No description provided by the author
# Type aliases
A HeaderParser is any function that turns raw header data into one or more Header objects.
No description provided by the author
No description provided by the author
No description provided by the author