sip

package
v0.0.0-...-52f2be3 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: ISC Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MethodRegister = "REGISTER"
	MethodInvite   = "INVITE"
	MethodAck      = "ACK"
	MethodCancel   = "CANCEL"
	MethodBye      = "BYE"
	MethodOptions  = "OPTIONS"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandSequence

type CommandSequence struct {
	Number int
	Method string
}

type Request

type Request struct {
	Method string
	URI    string

	Proto      string
	ProtoMajor int
	ProtoMinor int

	Header        textproto.MIMEHeader
	ContentLength int64
	Sequence      int

	Body io.Reader
}

func ReadRequest

func ReadRequest(r io.Reader) (*Request, error)

type Response

type Response struct {
	Status     string
	StatusCode int

	Header        textproto.MIMEHeader
	ContentLength int64
	Sequence      CommandSequence

	Body io.ReadCloser
}

Jump to

Keyboard shortcuts

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