Versions in this module Expand all Collapse all v1 v1.50.0 Nov 7, 2025 v1.49.0 Oct 30, 2025 v1.48.0 Sep 15, 2025 Changes in this version + func ParseMethod(method string) sip.RequestMethod type TransportType + func ParseTransport(transport string) TransportType v1.47.0 Jul 29, 2025 Changes in this version + const ContentTypePidf + const DefaultCSeq + const DefaultExpiresHeader + const DefaultInfoBodyContent + const DefaultInfoContentType + const DefaultInviteContentType + const DefaultMaxForwards + const DefaultMessageBodyContent + const DefaultMessageContentType + const DefaultRackCSeq + const DefaultRackInviteCSeq + const UDPMessageLength + var DefaultPorts = map[TransportType]int + var GlobalUA string + func AddMethodHeaders(req *sip.Request, method sip.RequestMethod) bool + func IsContactRequired(method sip.RequestMethod) bool + func NewDefaultInviteBody(host, sessid, sessver string) string + func NewDefaultNotifyBody(id, status, contact, ts string) string + func NewDefaultPublishBody(id, status, entity string) string + func NewRequestBody(method sip.RequestMethod) (string, string) + func NewSipRequest(method sip.RequestMethod, host string, opts *NewSipRequestOpts) (*sip.Request, bool) + func NewViaHeader(opts *NewViaOpts) (*sip.ViaHeader, bool) + func ReadMessageTCP(conn net.Conn) (sip.Message, bool) + func ReadMessageUDP(conn *net.UDPConn) (sip.Message, bool) + func SendAndReceiveTCP(conn net.Conn, req sip.Message) (*sip.Response, bool) + func SendAndReceiveUDP(conn *net.UDPConn, req sip.Message) (*sip.Response, bool) + type NewSipRequestOpts struct + LocalHost string + LocalPort int + Password string + Port int + ToUser string + Transport TransportType + User string + type NewViaOpts struct + Host string + Port int + ProtocolName string + ProtocolVersion string + Transport string + type TransportType int + const TCP + const TLS + const UDP + const UNKNOWN + const WS + const WSS + func (t TransportType) String() string