package
1.6.4
Repository: https://github.com/yiuterran/go-common.git
Documentation: pkg.go.dev

# README

SIP parser

Package implements SIP protocol parser compatible with RFC 3261

Originally forked from gossip library by @StefanKopieczek.

# Functions

GetNextHeaderLine extract the next logical header line from the message.
No description provided by the author
NewStreamParser 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.
ParseHeaderParams is general utility method for parsing 'key=value' parameters.
ParseHostPort parse a text representation of a host[:port] pair.
ParseMessage parse a SIP message by creating a StreamParser on the fly.
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

PacketParser 直接解析.
No description provided by the author

# Interfaces

No description provided by the author
Parser converts the raw bytes of SIP messages into sip.Message objects.

# 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