sippy_header

package
v0.0.0-...-b4a1369 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: BSD-2-Clause Imports: 15 Imported by: 0

Documentation

Overview

Package sippy_header Copyright (c) 2015 Andrii Pylypenko. All rights reserved.

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Package sippy_header Copyright (c) 2003-2005 Maxim Sobolev. All rights reserved. Copyright (c) 2006-2019 Sippy Software, Inc. All rights reserved. Copyright (c) 2019 Andrii Pylypenko. All rights reserved.

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Index

Constants

View Source
const (
	Rfc3261UserUnreserved = "&=+$,;?/#"
	Rfc3261Unreserved     = "-_.!~*'()"
)

Variables

This section is empty.

Functions

func CreateSipAddressHFs

func CreateSipAddressHFs(body string) []*sipAddressHF

func DigestCalcHA1

func DigestCalcHA1(alg *sippy_security.Algorithm, pszAlg, pszUserName, pszRealm, pszPassword, pszNonce, pszCNonce string) string

func DigestCalcResponse

func DigestCalcResponse(alg *sippy_security.Algorithm, HA1, pszNonce, pszNonceCount, pszCNonce, pszQop, pszMethod, pszDigestUri, pszHEntity string) string

func NewSipGenericHF

func NewSipGenericHF(name, body string) *sipGenericHF

Types

type RTID

type RTID struct {
	CallId  string
	FromTag string
	RSeq    int
	CSeq    int
	Method  string
}

func NewRTID

func NewRTID(callId, fromTag string, rseq, cseq int, method string) *RTID

func (*RTID) String

func (r *RTID) String() string

type SipAddress

type SipAddress struct {
	// contains filtered or unexported fields
}

func NewSipAddress

func NewSipAddress(name string, url *SipURL) *SipAddress

func ParseSipAddress

func ParseSipAddress(address string, relaxedparser bool, config sippy_conf.Config) (*SipAddress, error)

func (*SipAddress) GenTag

func (a *SipAddress) GenTag()

func (*SipAddress) GetCopy

func (a *SipAddress) GetCopy() *SipAddress

func (*SipAddress) GetName

func (a *SipAddress) GetName() string

func (*SipAddress) GetParam

func (a *SipAddress) GetParam(name string) string

func (*SipAddress) GetParams

func (a *SipAddress) GetParams() map[string]*string

func (*SipAddress) GetQ

func (a *SipAddress) GetQ() float64

func (*SipAddress) GetTag

func (a *SipAddress) GetTag() string

func (*SipAddress) GetUrl

func (a *SipAddress) GetUrl() *SipURL

func (*SipAddress) LocalStr

func (a *SipAddress) LocalStr(hostPort *sippy_net.HostPort) string

func (*SipAddress) SetName

func (a *SipAddress) SetName(name string)

func (*SipAddress) SetParam

func (a *SipAddress) SetParam(name, value string)

func (*SipAddress) SetParams

func (a *SipAddress) SetParams(params map[string]*string)

func (*SipAddress) SetTag

func (a *SipAddress) SetTag(tag string)

func (*SipAddress) String

func (a *SipAddress) String() string

type SipAlso

type SipAlso struct {
	// contains filtered or unexported fields
}

func NewSipAlso

func NewSipAlso(addr *SipAddress) *SipAlso

func (SipAlso) CompactName

func (n SipAlso) CompactName() string

func (SipAlso) GetBody

func (h SipAlso) GetBody(config sippy_conf.Config) (*SipAddress, error)

func (*SipAlso) GetCopy

func (a *SipAlso) GetCopy() *SipAlso

func (*SipAlso) GetCopyAsIface

func (a *SipAlso) GetCopyAsIface() SipHeader

func (*SipAlso) LocalStr

func (a *SipAlso) LocalStr(hostPort *sippy_net.HostPort, compact bool) string

func (SipAlso) LocalStringBody

func (h SipAlso) LocalStringBody(hostPort *sippy_net.HostPort) string

func (SipAlso) Name

func (n SipAlso) Name() string

func (*SipAlso) String

func (a *SipAlso) String() string

func (SipAlso) StringBody

func (h SipAlso) StringBody() string

type SipAuthorization

type SipAuthorization struct {
	// contains filtered or unexported fields
}

func NewSipAuthorization

func NewSipAuthorization(realm, nonce, uri, username, algorithm string) *SipAuthorization

func NewSipAuthorizationWithBody

func NewSipAuthorizationWithBody(body *SipAuthorizationBody) *SipAuthorization

func (SipAuthorization) CompactName

func (n SipAuthorization) CompactName() string

func (*SipAuthorization) GetBody

func (a *SipAuthorization) GetBody() (*SipAuthorizationBody, error)

func (*SipAuthorization) GetCopy

func (a *SipAuthorization) GetCopy() *SipAuthorization

func (*SipAuthorization) GetCopyAsIface

func (a *SipAuthorization) GetCopyAsIface() SipHeader

func (*SipAuthorization) GetUsername

func (a *SipAuthorization) GetUsername() (string, error)

func (*SipAuthorization) LocalStr

func (a *SipAuthorization) LocalStr(*sippy_net.HostPort, bool) string

func (SipAuthorization) Name

func (n SipAuthorization) Name() string

func (*SipAuthorization) String

func (a *SipAuthorization) String() string

func (*SipAuthorization) StringBody

func (a *SipAuthorization) StringBody() string

type SipAuthorizationBody

type SipAuthorizationBody struct {
	// contains filtered or unexported fields
}

func (*SipAuthorizationBody) GenResponse

func (b *SipAuthorizationBody) GenResponse(password, method, entityBody string)

func (*SipAuthorizationBody) GetCopy

func (*SipAuthorizationBody) GetUsername

func (b *SipAuthorizationBody) GetUsername() string

func (*SipAuthorizationBody) String

func (b *SipAuthorizationBody) String() string

func (*SipAuthorizationBody) Verify

func (b *SipAuthorizationBody) Verify(passwd, method, entityBody string) bool

func (*SipAuthorizationBody) VerifyHA1

func (b *SipAuthorizationBody) VerifyHA1(HA1, method, entityBody string) bool

type SipAuthorizationHeader

type SipAuthorizationHeader interface {
	SipHeader
	GetBody() (*SipAuthorizationBody, error)
}

type SipCCDiversion

type SipCCDiversion struct {
	// contains filtered or unexported fields
}

func (SipCCDiversion) CompactName

func (n SipCCDiversion) CompactName() string

func (SipCCDiversion) GetBody

func (h SipCCDiversion) GetBody(config sippy_conf.Config) (*SipAddress, error)

func (*SipCCDiversion) GetCopy

func (d *SipCCDiversion) GetCopy() *SipCCDiversion

func (*SipCCDiversion) GetCopyAsIface

func (d *SipCCDiversion) GetCopyAsIface() SipHeader

func (*SipCCDiversion) LocalStr

func (d *SipCCDiversion) LocalStr(hostPort *sippy_net.HostPort, compact bool) string

func (SipCCDiversion) LocalStringBody

func (h SipCCDiversion) LocalStringBody(hostPort *sippy_net.HostPort) string

func (SipCCDiversion) Name

func (n SipCCDiversion) Name() string

func (*SipCCDiversion) String

func (d *SipCCDiversion) String() string

func (SipCCDiversion) StringBody

func (h SipCCDiversion) StringBody() string

type SipCSeq

type SipCSeq struct {
	// contains filtered or unexported fields
}

func NewSipCSeq

func NewSipCSeq(cseq int, method string) *SipCSeq

func (SipCSeq) CompactName

func (n SipCSeq) CompactName() string

func (*SipCSeq) GetBody

func (s *SipCSeq) GetBody() (*SipCSeqBody, error)

func (*SipCSeq) GetCopy

func (s *SipCSeq) GetCopy() *SipCSeq

func (*SipCSeq) GetCopyAsIface

func (s *SipCSeq) GetCopyAsIface() SipHeader

func (*SipCSeq) LocalStr

func (s *SipCSeq) LocalStr(*sippy_net.HostPort, bool) string

func (SipCSeq) Name

func (n SipCSeq) Name() string

func (*SipCSeq) String

func (s *SipCSeq) String() string

func (*SipCSeq) StringBody

func (s *SipCSeq) StringBody() string

type SipCSeqBody

type SipCSeqBody struct {
	CSeq   int
	Method string
}

func (*SipCSeqBody) String

func (s *SipCSeqBody) String() string

type SipCallId

type SipCallId struct {
	CallId string
	// contains filtered or unexported fields
}

func GenerateSipCallId

func GenerateSipCallId(config sippy_conf.Config) *SipCallId

func NewSipCallIdFromString

func NewSipCallIdFromString(call_id string) *SipCallId

func (SipCallId) CompactName

func (n SipCallId) CompactName() string

func (*SipCallId) GetCopy

func (s *SipCallId) GetCopy() *SipCallId

func (*SipCallId) GetCopyAsIface

func (s *SipCallId) GetCopyAsIface() SipHeader

func (*SipCallId) LocalStr

func (s *SipCallId) LocalStr(hostPort *sippy_net.HostPort, compact bool) string

func (SipCallId) Name

func (n SipCallId) Name() string

func (*SipCallId) String

func (s *SipCallId) String() string

func (*SipCallId) StringBody

func (s *SipCallId) StringBody() string

type SipCiscoGUID

type SipCiscoGUID struct {
	// contains filtered or unexported fields
}

func NewSipCiscoGUID

func NewSipCiscoGUID() *SipCiscoGUID

func (*SipCiscoGUID) AsH323ConfId

func (g *SipCiscoGUID) AsH323ConfId() *SipH323ConfId

func (SipCiscoGUID) CompactName

func (n SipCiscoGUID) CompactName() string

func (*SipCiscoGUID) GetCopy

func (g *SipCiscoGUID) GetCopy() *SipCiscoGUID

func (*SipCiscoGUID) GetCopyAsIface

func (g *SipCiscoGUID) GetCopyAsIface() SipHeader

func (*SipCiscoGUID) LocalStr

func (g *SipCiscoGUID) LocalStr(*sippy_net.HostPort, bool) string

func (SipCiscoGUID) Name

func (n SipCiscoGUID) Name() string

func (*SipCiscoGUID) String

func (g *SipCiscoGUID) String() string

func (*SipCiscoGUID) StringBody

func (g *SipCiscoGUID) StringBody() string

type SipContact

type SipContact struct {
	Asterisk bool
	// contains filtered or unexported fields
}

func NewSipContact

func NewSipContact(config sippy_conf.Config) *SipContact

func NewSipContactFromAddress

func NewSipContactFromAddress(addr *SipAddress) *SipContact

func NewSipContactFromHostPort

func NewSipContactFromHostPort(host *sippy_net.MyAddress, port *sippy_net.MyPort) *SipContact

func (SipContact) CompactName

func (n SipContact) CompactName() string

func (SipContact) GetBody

func (h SipContact) GetBody(config sippy_conf.Config) (*SipAddress, error)

func (*SipContact) GetCopy

func (c *SipContact) GetCopy() *SipContact

func (*SipContact) GetCopyAsIface

func (c *SipContact) GetCopyAsIface() SipHeader

func (*SipContact) LocalStr

func (c *SipContact) LocalStr(hostPort *sippy_net.HostPort, compact bool) string

func (*SipContact) LocalStringBody

func (c *SipContact) LocalStringBody(hostPort *sippy_net.HostPort) string

func (SipContact) Name

func (n SipContact) Name() string

func (*SipContact) String

func (c *SipContact) String() string

func (*SipContact) StringBody

func (c *SipContact) StringBody() string

type SipContentLength

type SipContentLength struct {
	SipNumericHF
	// contains filtered or unexported fields
}

func (SipContentLength) CompactName

func (n SipContentLength) CompactName() string

func (*SipContentLength) GetCopy

func (s *SipContentLength) GetCopy() *SipContentLength

func (*SipContentLength) GetCopyAsIface

func (s *SipContentLength) GetCopyAsIface() SipHeader

func (*SipContentLength) LocalStr

func (s *SipContentLength) LocalStr(hostPort *sippy_net.HostPort, compact bool) string

func (SipContentLength) Name

func (n SipContentLength) Name() string

func (*SipContentLength) String

func (s *SipContentLength) String() string

type SipContentType

type SipContentType struct {
	// contains filtered or unexported fields
}

func (SipContentType) CompactName

func (n SipContentType) CompactName() string

func (*SipContentType) GetCopy

func (s *SipContentType) GetCopy() *SipContentType

func (*SipContentType) GetCopyAsIface

func (s *SipContentType) GetCopyAsIface() SipHeader

func (*SipContentType) LocalStr

func (s *SipContentType) LocalStr(hostPort *sippy_net.HostPort, compact bool) string

func (SipContentType) Name

func (n SipContentType) Name() string

func (*SipContentType) String

func (s *SipContentType) String() string

func (*SipContentType) StringBody

func (s *SipContentType) StringBody() string

type SipDate

type SipDate struct {
	// contains filtered or unexported fields
}

func NewSipDate

func NewSipDate(ts time.Time) *SipDate

func (SipDate) CompactName

func (n SipDate) CompactName() string

func (*SipDate) GetCopy

func (s *SipDate) GetCopy() *SipDate

func (*SipDate) GetCopyAsIface

func (s *SipDate) GetCopyAsIface() SipHeader

func (*SipDate) GetTime

func (s *SipDate) GetTime() (time.Time, error)

func (*SipDate) LocalStr

func (s *SipDate) LocalStr(hostPort *sippy_net.HostPort, compact bool) string

func (SipDate) Name

func (n SipDate) Name() string

func (*SipDate) String

func (s *SipDate) String() string

func (*SipDate) StringBody

func (s *SipDate) StringBody() string

type SipDiversion

type SipDiversion struct {
	// contains filtered or unexported fields
}

func NewSipDiversion

func NewSipDiversion(addr *SipAddress) *SipDiversion

func (SipDiversion) CompactName

func (n SipDiversion) CompactName() string

func (SipDiversion) GetBody

func (h SipDiversion) GetBody(config sippy_conf.Config) (*SipAddress, error)

func (*SipDiversion) GetCopy

func (s *SipDiversion) GetCopy() *SipDiversion

func (*SipDiversion) GetCopyAsIface

func (s *SipDiversion) GetCopyAsIface() SipHeader

func (*SipDiversion) LocalStr

func (s *SipDiversion) LocalStr(hostPort *sippy_net.HostPort, compact bool) string

func (SipDiversion) LocalStringBody

func (h SipDiversion) LocalStringBody(hostPort *sippy_net.HostPort) string

func (SipDiversion) Name

func (n SipDiversion) Name() string

func (*SipDiversion) String

func (s *SipDiversion) String() string

func (SipDiversion) StringBody

func (h SipDiversion) StringBody() string

type SipExpires

type SipExpires struct {
	SipNumericHF
	// contains filtered or unexported fields
}

func NewSipExpires

func NewSipExpires() *SipExpires

func (SipExpires) CompactName

func (n SipExpires) CompactName() string

func (*SipExpires) GetCopy

func (s *SipExpires) GetCopy() *SipExpires

func (*SipExpires) GetCopyAsIface

func (s *SipExpires) GetCopyAsIface() SipHeader

func (*SipExpires) LocalStr

func (s *SipExpires) LocalStr(hostPort *sippy_net.HostPort, compact bool) string

func (SipExpires) Name

func (n SipExpires) Name() string

func (*SipExpires) String

func (s *SipExpires) String() string

type SipFrom

type SipFrom struct {
	// contains filtered or unexported fields
}

func NewSipFrom

func NewSipFrom(address *SipAddress, config sippy_conf.Config) *SipFrom

func (SipFrom) CompactName

func (n SipFrom) CompactName() string

func (SipFrom) GetBody

func (h SipFrom) GetBody(config sippy_conf.Config) (*SipAddress, error)

func (*SipFrom) GetCopy

func (s *SipFrom) GetCopy() *SipFrom

func (*SipFrom) GetCopyAsIface

func (s *SipFrom) GetCopyAsIface() SipHeader

func (*SipFrom) LocalStr

func (s *SipFrom) LocalStr(hostPort *sippy_net.HostPort, compact bool) string

func (SipFrom) LocalStringBody

func (h SipFrom) LocalStringBody(hostPort *sippy_net.HostPort) string

func (SipFrom) Name

func (n SipFrom) Name() string

func (*SipFrom) String

func (s *SipFrom) String() string

func (SipFrom) StringBody

func (h SipFrom) StringBody() string

type SipH323ConfId

type SipH323ConfId struct {
	// contains filtered or unexported fields
}

func (*SipH323ConfId) AsCiscoGUID

func (s *SipH323ConfId) AsCiscoGUID() *SipCiscoGUID

func (SipH323ConfId) CompactName

func (n SipH323ConfId) CompactName() string

func (*SipH323ConfId) GetCopy

func (s *SipH323ConfId) GetCopy() *SipH323ConfId

func (*SipH323ConfId) GetCopyAsIface

func (s *SipH323ConfId) GetCopyAsIface() SipHeader

func (*SipH323ConfId) LocalStr

func (s *SipH323ConfId) LocalStr(*sippy_net.HostPort, bool) string

func (SipH323ConfId) Name

func (n SipH323ConfId) Name() string

func (*SipH323ConfId) String

func (s *SipH323ConfId) String() string

func (*SipH323ConfId) StringBody

func (s *SipH323ConfId) StringBody() string

type SipHeader

type SipHeader interface {
	Name() string
	CompactName() string
	String() string
	StringBody() string
	LocalStr(hostPort *sippy_net.HostPort, compact bool) string
	GetCopyAsIface() SipHeader
}

func CreateSipAlso

func CreateSipAlso(body string) []SipHeader

func CreateSipAuthorization

func CreateSipAuthorization(body string) []SipHeader

func CreateSipCCDiversion

func CreateSipCCDiversion(body string) []SipHeader

func CreateSipCSeq

func CreateSipCSeq(body string) []SipHeader

func CreateSipCallId

func CreateSipCallId(body string) []SipHeader

func CreateSipCiscoGUID

func CreateSipCiscoGUID(body string) []SipHeader

func CreateSipContact

func CreateSipContact(body string) []SipHeader

func CreateSipContentLength

func CreateSipContentLength(body string) []SipHeader

func CreateSipContentType

func CreateSipContentType(body string) []SipHeader

func CreateSipDate

func CreateSipDate(body string) []SipHeader

func CreateSipDiversion

func CreateSipDiversion(body string) []SipHeader

func CreateSipExpires

func CreateSipExpires(body string) []SipHeader

func CreateSipFrom

func CreateSipFrom(body string) []SipHeader

func CreateSipH323ConfId

func CreateSipH323ConfId(body string) []SipHeader

func CreateSipMaxForwards

func CreateSipMaxForwards(body string) []SipHeader

func CreateSipProxyAuthenticate

func CreateSipProxyAuthenticate(body string) []SipHeader

func CreateSipProxyAuthorization

func CreateSipProxyAuthorization(body string) []SipHeader

func CreateSipRAck

func CreateSipRAck(body string) []SipHeader

func CreateSipRSeq

func CreateSipRSeq(body string) []SipHeader

func CreateSipReason

func CreateSipReason(body string) []SipHeader

func CreateSipRecordRoute

func CreateSipRecordRoute(body string) []SipHeader

func CreateSipReferTo

func CreateSipReferTo(body string) []SipHeader

func CreateSipReferredBy

func CreateSipReferredBy(body string) []SipHeader

func CreateSipReplaces

func CreateSipReplaces(body string) []SipHeader

func CreateSipRequire

func CreateSipRequire(body string) []SipHeader

func CreateSipRoute

func CreateSipRoute(body string) []SipHeader

func CreateSipServer

func CreateSipServer(body string) []SipHeader

func CreateSipSupported

func CreateSipSupported(body string) []SipHeader

func CreateSipTo

func CreateSipTo(body string) []SipHeader

func CreateSipUserAgent

func CreateSipUserAgent(body string) []SipHeader

func CreateSipVia

func CreateSipVia(body string) []SipHeader

func CreateSipWWWAuthenticate

func CreateSipWWWAuthenticate(body string) []SipHeader

func CreateSipWarning

func CreateSipWarning(body string) []SipHeader

type SipMaxForwards

type SipMaxForwards struct {
	SipNumericHF
	// contains filtered or unexported fields
}

func NewSipMaxForwards

func NewSipMaxForwards(number int) *SipMaxForwards

func NewSipMaxForwardsDefault

func NewSipMaxForwardsDefault() *SipMaxForwards

func (SipMaxForwards) CompactName

func (n SipMaxForwards) CompactName() string

func (*SipMaxForwards) GetCopy

func (s *SipMaxForwards) GetCopy() *SipMaxForwards

func (*SipMaxForwards) GetCopyAsIface

func (s *SipMaxForwards) GetCopyAsIface() SipHeader

func (*SipMaxForwards) LocalStr

func (s *SipMaxForwards) LocalStr(*sippy_net.HostPort, bool) string

func (SipMaxForwards) Name

func (n SipMaxForwards) Name() string

func (*SipMaxForwards) String

func (s *SipMaxForwards) String() string

type SipNumericHF

type SipNumericHF struct {
	Number int
	// contains filtered or unexported fields
}

func (*SipNumericHF) GetBody

func (s *SipNumericHF) GetBody() (*SipNumericHF, error)

func (*SipNumericHF) StringBody

func (s *SipNumericHF) StringBody() string

type SipProxyAuthenticate

type SipProxyAuthenticate struct {
	*SipWWWAuthenticate
}

func (SipProxyAuthenticate) CompactName

func (n SipProxyAuthenticate) CompactName() string

func (*SipProxyAuthenticate) GetCopy

func (*SipProxyAuthenticate) GetCopyAsIface

func (s *SipProxyAuthenticate) GetCopyAsIface() SipHeader

func (SipProxyAuthenticate) Name

func (n SipProxyAuthenticate) Name() string

type SipProxyAuthorization

type SipProxyAuthorization struct {
	*SipAuthorization
}

func NewSipProxyAuthorization

func NewSipProxyAuthorization(realm, nonce, uri, username, algorithm string) *SipProxyAuthorization

func NewSipProxyAuthorizationWithBody

func NewSipProxyAuthorizationWithBody(body *SipAuthorizationBody) *SipProxyAuthorization

func (SipProxyAuthorization) CompactName

func (n SipProxyAuthorization) CompactName() string

func (SipProxyAuthorization) Name

func (n SipProxyAuthorization) Name() string

type SipRAck

type SipRAck struct {
	// contains filtered or unexported fields
}

func NewSipRAck

func NewSipRAck(rseq, cseq int, method string) *SipRAck

func (SipRAck) CompactName

func (n SipRAck) CompactName() string

func (*SipRAck) GetBody

func (s *SipRAck) GetBody() (*SipRAckBody, error)

func (*SipRAck) GetCopy

func (s *SipRAck) GetCopy() *SipRAck

func (*SipRAck) GetCopyAsIface

func (s *SipRAck) GetCopyAsIface() SipHeader

func (*SipRAck) LocalStr

func (s *SipRAck) LocalStr(*sippy_net.HostPort, bool) string

func (SipRAck) Name

func (n SipRAck) Name() string

func (*SipRAck) String

func (s *SipRAck) String() string

func (*SipRAck) StringBody

func (s *SipRAck) StringBody() string

type SipRAckBody

type SipRAckBody struct {
	CSeq   int
	RSeq   int
	Method string
}

func (*SipRAckBody) String

func (s *SipRAckBody) String() string

type SipRSeq

type SipRSeq struct {
	SipNumericHF
	// contains filtered or unexported fields
}

func NewSipRSeq

func NewSipRSeq() *SipRSeq

func (SipRSeq) CompactName

func (n SipRSeq) CompactName() string

func (*SipRSeq) GetCopy

func (s *SipRSeq) GetCopy() *SipRSeq

func (*SipRSeq) GetCopyAsIface

func (s *SipRSeq) GetCopyAsIface() SipHeader

func (*SipRSeq) LocalStr

func (s *SipRSeq) LocalStr(hostPort *sippy_net.HostPort, compact bool) string

func (SipRSeq) Name

func (n SipRSeq) Name() string

func (*SipRSeq) String

func (s *SipRSeq) String() string

type SipReason

type SipReason struct {
	// contains filtered or unexported fields
}

func NewSipReason

func NewSipReason(protocol, cause, reason string) *SipReason

func (SipReason) CompactName

func (n SipReason) CompactName() string

func (*SipReason) GetCopy

func (s *SipReason) GetCopy() *SipReason

func (*SipReason) GetCopyAsIface

func (s *SipReason) GetCopyAsIface() SipHeader

func (*SipReason) LocalStr

func (s *SipReason) LocalStr(hostPort *sippy_net.HostPort, compact bool) string

func (SipReason) Name

func (n SipReason) Name() string

func (*SipReason) String

func (s *SipReason) String() string

func (*SipReason) StringBody

func (s *SipReason) StringBody() string

type SipRecordRoute

type SipRecordRoute struct {
	// contains filtered or unexported fields
}

func (*SipRecordRoute) AsSipRoute

func (s *SipRecordRoute) AsSipRoute() *SipRoute

func (SipRecordRoute) CompactName

func (n SipRecordRoute) CompactName() string

func (SipRecordRoute) GetBody

func (h SipRecordRoute) GetBody(config sippy_conf.Config) (*SipAddress, error)

func (*SipRecordRoute) GetCopy

func (s *SipRecordRoute) GetCopy() *SipRecordRoute

func (*SipRecordRoute) GetCopyAsIface

func (s *SipRecordRoute) GetCopyAsIface() SipHeader

func (*SipRecordRoute) LocalStr

func (s *SipRecordRoute) LocalStr(hostPort *sippy_net.HostPort, compact bool) string

func (SipRecordRoute) LocalStringBody

func (h SipRecordRoute) LocalStringBody(hostPort *sippy_net.HostPort) string

func (SipRecordRoute) Name

func (n SipRecordRoute) Name() string

func (*SipRecordRoute) String

func (s *SipRecordRoute) String() string

func (SipRecordRoute) StringBody

func (h SipRecordRoute) StringBody() string

type SipReferTo

type SipReferTo struct {
	// contains filtered or unexported fields
}

func NewSipReferTo

func NewSipReferTo(addr *SipAddress) *SipReferTo

func (*SipReferTo) AsSipAlso

func (s *SipReferTo) AsSipAlso() *SipAlso

func (SipReferTo) CompactName

func (n SipReferTo) CompactName() string

func (SipReferTo) GetBody

func (h SipReferTo) GetBody(config sippy_conf.Config) (*SipAddress, error)

func (*SipReferTo) GetCopy

func (s *SipReferTo) GetCopy() *SipReferTo

func (*SipReferTo) GetCopyAsIface

func (s *SipReferTo) GetCopyAsIface() SipHeader

func (*SipReferTo) LocalStr

func (s *SipReferTo) LocalStr(hostPort *sippy_net.HostPort, compact bool) string

func (SipReferTo) LocalStringBody

func (h SipReferTo) LocalStringBody(hostPort *sippy_net.HostPort) string

func (SipReferTo) Name

func (n SipReferTo) Name() string

func (*SipReferTo) String

func (s *SipReferTo) String() string

func (SipReferTo) StringBody

func (h SipReferTo) StringBody() string

type SipReferredBy

type SipReferredBy struct {
	// contains filtered or unexported fields
}

func NewSipReferredBy

func NewSipReferredBy(addr *SipAddress) *SipReferredBy

func (SipReferredBy) CompactName

func (n SipReferredBy) CompactName() string

func (SipReferredBy) GetBody

func (h SipReferredBy) GetBody(config sippy_conf.Config) (*SipAddress, error)

func (*SipReferredBy) GetCopy

func (s *SipReferredBy) GetCopy() *SipReferredBy

func (*SipReferredBy) GetCopyAsIface

func (s *SipReferredBy) GetCopyAsIface() SipHeader

func (*SipReferredBy) LocalStr

func (s *SipReferredBy) LocalStr(hostPort *sippy_net.HostPort, compact bool) string

func (SipReferredBy) LocalStringBody

func (h SipReferredBy) LocalStringBody(hostPort *sippy_net.HostPort) string

func (SipReferredBy) Name

func (n SipReferredBy) Name() string

func (*SipReferredBy) String

func (s *SipReferredBy) String() string

func (SipReferredBy) StringBody

func (h SipReferredBy) StringBody() string

type SipReplaces

type SipReplaces struct {
	// contains filtered or unexported fields
}

func (SipReplaces) CompactName

func (n SipReplaces) CompactName() string

func (*SipReplaces) GetCopy

func (s *SipReplaces) GetCopy() *SipReplaces

func (*SipReplaces) GetCopyAsIface

func (s *SipReplaces) GetCopyAsIface() SipHeader

func (*SipReplaces) LocalStr

func (s *SipReplaces) LocalStr(hostPort *sippy_net.HostPort, compact bool) string

func (SipReplaces) Name

func (n SipReplaces) Name() string

func (*SipReplaces) String

func (s *SipReplaces) String() string

func (*SipReplaces) StringBody

func (s *SipReplaces) StringBody() string

type SipRequire

type SipRequire struct {
	// contains filtered or unexported fields
}

func (SipRequire) CompactName

func (n SipRequire) CompactName() string

func (*SipRequire) GetBody

func (s *SipRequire) GetBody() *tagListBody

func (*SipRequire) GetCopy

func (s *SipRequire) GetCopy() *SipRequire

func (*SipRequire) GetCopyAsIface

func (s *SipRequire) GetCopyAsIface() SipHeader

func (*SipRequire) HasTag

func (s *SipRequire) HasTag(tag string) bool

func (*SipRequire) LocalStr

func (s *SipRequire) LocalStr(*sippy_net.HostPort, bool) string

func (SipRequire) Name

func (n SipRequire) Name() string

func (*SipRequire) String

func (s *SipRequire) String() string

func (*SipRequire) StringBody

func (s *SipRequire) StringBody() string

type SipRoute

type SipRoute struct {
	// contains filtered or unexported fields
}

func NewSipRoute

func NewSipRoute(addr *SipAddress) *SipRoute

func (SipRoute) CompactName

func (n SipRoute) CompactName() string

func (SipRoute) GetBody

func (h SipRoute) GetBody(config sippy_conf.Config) (*SipAddress, error)

func (*SipRoute) GetCopy

func (s *SipRoute) GetCopy() *SipRoute

func (*SipRoute) GetCopyAsIface

func (s *SipRoute) GetCopyAsIface() SipHeader

func (*SipRoute) LocalStr

func (s *SipRoute) LocalStr(hostPort *sippy_net.HostPort, compact bool) string

func (SipRoute) LocalStringBody

func (h SipRoute) LocalStringBody(hostPort *sippy_net.HostPort) string

func (SipRoute) Name

func (n SipRoute) Name() string

func (*SipRoute) String

func (s *SipRoute) String() string

func (SipRoute) StringBody

func (h SipRoute) StringBody() string

type SipServer

type SipServer struct {
	Server string
	// contains filtered or unexported fields
}

func NewSipServer

func NewSipServer(body string) *SipServer

func (*SipServer) AsSipUserAgent

func (s *SipServer) AsSipUserAgent() *SipUserAgent

func (SipServer) CompactName

func (n SipServer) CompactName() string

func (*SipServer) GetCopy

func (s *SipServer) GetCopy() *SipServer

func (*SipServer) GetCopyAsIface

func (s *SipServer) GetCopyAsIface() SipHeader

func (*SipServer) LocalStr

func (s *SipServer) LocalStr(*sippy_net.HostPort, bool) string

func (SipServer) Name

func (n SipServer) Name() string

func (*SipServer) String

func (s *SipServer) String() string

func (*SipServer) StringBody

func (s *SipServer) StringBody() string

type SipSupported

type SipSupported struct {
	// contains filtered or unexported fields
}

func (SipSupported) CompactName

func (n SipSupported) CompactName() string

func (*SipSupported) GetBody

func (s *SipSupported) GetBody() *tagListBody

func (*SipSupported) GetCopy

func (s *SipSupported) GetCopy() *SipSupported

func (*SipSupported) GetCopyAsIface

func (s *SipSupported) GetCopyAsIface() SipHeader

func (*SipSupported) HasTag

func (s *SipSupported) HasTag(tag string) bool

func (*SipSupported) LocalStr

func (s *SipSupported) LocalStr(*sippy_net.HostPort, bool) string

func (SipSupported) Name

func (n SipSupported) Name() string

func (*SipSupported) String

func (s *SipSupported) String() string

func (*SipSupported) StringBody

func (s *SipSupported) StringBody() string

type SipTo

type SipTo struct {
	// contains filtered or unexported fields
}

func NewSipTo

func NewSipTo(address *SipAddress, config sippy_conf.Config) *SipTo

func (SipTo) CompactName

func (n SipTo) CompactName() string

func (SipTo) GetBody

func (h SipTo) GetBody(config sippy_conf.Config) (*SipAddress, error)

func (*SipTo) GetCopy

func (s *SipTo) GetCopy() *SipTo

func (*SipTo) GetCopyAsIface

func (s *SipTo) GetCopyAsIface() SipHeader

func (*SipTo) LocalStr

func (s *SipTo) LocalStr(hostPort *sippy_net.HostPort, compact bool) string

func (SipTo) LocalStringBody

func (h SipTo) LocalStringBody(hostPort *sippy_net.HostPort) string

func (SipTo) Name

func (n SipTo) Name() string

func (*SipTo) String

func (s *SipTo) String() string

func (SipTo) StringBody

func (h SipTo) StringBody() string

type SipURL

type SipURL struct {
	Username string

	Host *sippy_net.MyAddress
	Port *sippy_net.MyPort

	Lr bool
	// contains filtered or unexported fields
}

func NewSipURL

func NewSipURL(username string, host *sippy_net.MyAddress, port *sippy_net.MyPort, lr bool) *SipURL

func ParseSipURL

func ParseSipURL(url string, relaxedParser bool, config sippy_conf.Config) (*SipURL, error)

func ParseURL

func ParseURL(url string, relaxedParser bool) (*SipURL, error)

func (*SipURL) GetAddr

func (s *SipURL) GetAddr(config sippy_conf.Config) *sippy_net.HostPort

func (*SipURL) GetCopy

func (s *SipURL) GetCopy() *SipURL

func (*SipURL) GetParams

func (s *SipURL) GetParams() []string

func (*SipURL) GetUserParams

func (s *SipURL) GetUserParams() []string

func (*SipURL) LocalStr

func (s *SipURL) LocalStr(hostPort *sippy_net.HostPort) string

func (*SipURL) SetParams

func (s *SipURL) SetParams(params []string)

func (*SipURL) SetUserParams

func (s *SipURL) SetUserParams(userParams []string)

func (*SipURL) String

func (s *SipURL) String() string

type SipUserAgent

type SipUserAgent struct {
	UserAgent string
	// contains filtered or unexported fields
}

func NewSipUserAgent

func NewSipUserAgent(name string) *SipUserAgent

func (*SipUserAgent) AsSipServer

func (s *SipUserAgent) AsSipServer() *SipServer

func (SipUserAgent) CompactName

func (n SipUserAgent) CompactName() string

func (*SipUserAgent) GetCopy

func (s *SipUserAgent) GetCopy() *SipUserAgent

func (*SipUserAgent) GetCopyAsIface

func (s *SipUserAgent) GetCopyAsIface() SipHeader

func (*SipUserAgent) LocalStr

func (s *SipUserAgent) LocalStr(*sippy_net.HostPort, bool) string

func (SipUserAgent) Name

func (n SipUserAgent) Name() string

func (*SipUserAgent) String

func (s *SipUserAgent) String() string

func (*SipUserAgent) StringBody

func (s *SipUserAgent) StringBody() string

type SipVia

type SipVia struct {
	// contains filtered or unexported fields
}

func NewSipVia

func NewSipVia(config sippy_conf.Config) *SipVia

func (SipVia) CompactName

func (n SipVia) CompactName() string

func (*SipVia) GetBody

func (s *SipVia) GetBody() (*SipViaBody, error)

func (*SipVia) GetCopy

func (s *SipVia) GetCopy() *SipVia

func (*SipVia) GetCopyAsIface

func (s *SipVia) GetCopyAsIface() SipHeader

func (*SipVia) LocalStr

func (s *SipVia) LocalStr(hostPort *sippy_net.HostPort, compact bool) string

func (*SipVia) LocalStringBody

func (s *SipVia) LocalStringBody(hostPort *sippy_net.HostPort) string

func (SipVia) Name

func (n SipVia) Name() string

func (*SipVia) String

func (s *SipVia) String() string

func (*SipVia) StringBody

func (s *SipVia) StringBody() string

type SipViaBody

type SipViaBody struct {
	// contains filtered or unexported fields
}

func (*SipViaBody) GenBranch

func (b *SipViaBody) GenBranch()

func (*SipViaBody) GetAddr

func (b *SipViaBody) GetAddr(config sippy_conf.Config) (string, string)

func (*SipViaBody) GetBranch

func (b *SipViaBody) GetBranch() string

func (*SipViaBody) GetTAddr

func (b *SipViaBody) GetTAddr(config sippy_conf.Config) *sippy_net.HostPort

func (*SipViaBody) HasRPort

func (b *SipViaBody) HasRPort() bool

func (*SipViaBody) SetRPort

func (b *SipViaBody) SetRPort(v *string)

func (*SipViaBody) SetReceived

func (b *SipViaBody) SetReceived(v string)

type SipWWWAuthenticate

type SipWWWAuthenticate struct {
	// contains filtered or unexported fields
}

func NewSipWWWAuthenticateWithRealm

func NewSipWWWAuthenticateWithRealm(realm, algorithm string, nowMono time.Time) *SipWWWAuthenticate

func (*SipWWWAuthenticate) Algorithm

func (s *SipWWWAuthenticate) Algorithm() (string, error)

func (SipWWWAuthenticate) CompactName

func (n SipWWWAuthenticate) CompactName() string

func (*SipWWWAuthenticate) GenAuthHF

func (s *SipWWWAuthenticate) GenAuthHF(username, password, method, uri, entityBody string) (SipHeader, error)

func (*SipWWWAuthenticate) GetBody

func (*SipWWWAuthenticate) GetCopy

func (s *SipWWWAuthenticate) GetCopy() *SipWWWAuthenticate

func (*SipWWWAuthenticate) GetCopyAsIface

func (s *SipWWWAuthenticate) GetCopyAsIface() SipHeader

func (*SipWWWAuthenticate) LocalStr

func (s *SipWWWAuthenticate) LocalStr(hostPort *sippy_net.HostPort, compact bool) string

func (*SipWWWAuthenticate) LocalStringBody

func (s *SipWWWAuthenticate) LocalStringBody(hostPort *sippy_net.HostPort) string

func (SipWWWAuthenticate) Name

func (n SipWWWAuthenticate) Name() string

func (*SipWWWAuthenticate) String

func (s *SipWWWAuthenticate) String() string

func (*SipWWWAuthenticate) StringBody

func (s *SipWWWAuthenticate) StringBody() string

func (*SipWWWAuthenticate) SupportedAlgorithm

func (s *SipWWWAuthenticate) SupportedAlgorithm() (bool, error)

type SipWWWAuthenticateBody

type SipWWWAuthenticateBody struct {
	// contains filtered or unexported fields
}

func (*SipWWWAuthenticateBody) GetNonce

func (s *SipWWWAuthenticateBody) GetNonce() string

func (*SipWWWAuthenticateBody) GetRealm

func (s *SipWWWAuthenticateBody) GetRealm() string

type SipWarning

type SipWarning struct {
	// contains filtered or unexported fields
}

func NewSipWarning

func NewSipWarning(text string) *SipWarning

func (SipWarning) CompactName

func (n SipWarning) CompactName() string

func (*SipWarning) GetCopy

func (s *SipWarning) GetCopy() *SipWarning

func (*SipWarning) GetCopyAsIface

func (s *SipWarning) GetCopyAsIface() SipHeader

func (*SipWarning) LocalStr

func (s *SipWarning) LocalStr(hostPort *sippy_net.HostPort, compact bool) string

func (SipWarning) Name

func (n SipWarning) Name() string

func (*SipWarning) String

func (s *SipWarning) String() string

func (*SipWarning) StringBody

func (s *SipWarning) StringBody() string

type TID

type TID struct {
	CallId     string
	CSeq       string
	CSeqMethod string
	FromTag    string
	ToTag      string
	Branch     string
}

func NewTID

func NewTID(callId, cseq, cseqMethod, fromTag, toTag, viaBranch string) *TID

func (*TID) String

func (s *TID) String() string

Jump to

Keyboard shortcuts

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