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
- func CreateSipAddressHFs(body string) []*sipAddressHF
- func DigestCalcHA1(alg *sippy_security.Algorithm, ...) string
- func DigestCalcResponse(alg *sippy_security.Algorithm, ...) string
- func NewSipGenericHF(name, body string) *sipGenericHF
- type RTID
- type SipAddress
- func (a *SipAddress) GenTag()
- func (a *SipAddress) GetCopy() *SipAddress
- func (a *SipAddress) GetName() string
- func (a *SipAddress) GetParam(name string) string
- func (a *SipAddress) GetParams() map[string]*string
- func (a *SipAddress) GetQ() float64
- func (a *SipAddress) GetTag() string
- func (a *SipAddress) GetUrl() *SipURL
- func (a *SipAddress) LocalStr(hostPort *sippy_net.HostPort) string
- func (a *SipAddress) SetName(name string)
- func (a *SipAddress) SetParam(name, value string)
- func (a *SipAddress) SetParams(params map[string]*string)
- func (a *SipAddress) SetTag(tag string)
- func (a *SipAddress) String() string
- type SipAlso
- func (n SipAlso) CompactName() string
- func (h SipAlso) GetBody(config sippy_conf.Config) (*SipAddress, error)
- func (a *SipAlso) GetCopy() *SipAlso
- func (a *SipAlso) GetCopyAsIface() SipHeader
- func (a *SipAlso) LocalStr(hostPort *sippy_net.HostPort, compact bool) string
- func (h SipAlso) LocalStringBody(hostPort *sippy_net.HostPort) string
- func (n SipAlso) Name() string
- func (a *SipAlso) String() string
- func (h SipAlso) StringBody() string
- type SipAuthorization
- func (n SipAuthorization) CompactName() string
- func (a *SipAuthorization) GetBody() (*SipAuthorizationBody, error)
- func (a *SipAuthorization) GetCopy() *SipAuthorization
- func (a *SipAuthorization) GetCopyAsIface() SipHeader
- func (a *SipAuthorization) GetUsername() (string, error)
- func (a *SipAuthorization) LocalStr(*sippy_net.HostPort, bool) string
- func (n SipAuthorization) Name() string
- func (a *SipAuthorization) String() string
- func (a *SipAuthorization) StringBody() string
- type SipAuthorizationBody
- func (b *SipAuthorizationBody) GenResponse(password, method, entityBody string)
- func (b *SipAuthorizationBody) GetCopy() *SipAuthorizationBody
- func (b *SipAuthorizationBody) GetUsername() string
- func (b *SipAuthorizationBody) String() string
- func (b *SipAuthorizationBody) Verify(passwd, method, entityBody string) bool
- func (b *SipAuthorizationBody) VerifyHA1(HA1, method, entityBody string) bool
- type SipAuthorizationHeader
- type SipCCDiversion
- func (n SipCCDiversion) CompactName() string
- func (h SipCCDiversion) GetBody(config sippy_conf.Config) (*SipAddress, error)
- func (d *SipCCDiversion) GetCopy() *SipCCDiversion
- func (d *SipCCDiversion) GetCopyAsIface() SipHeader
- func (d *SipCCDiversion) LocalStr(hostPort *sippy_net.HostPort, compact bool) string
- func (h SipCCDiversion) LocalStringBody(hostPort *sippy_net.HostPort) string
- func (n SipCCDiversion) Name() string
- func (d *SipCCDiversion) String() string
- func (h SipCCDiversion) StringBody() string
- type SipCSeq
- func (n SipCSeq) CompactName() string
- func (s *SipCSeq) GetBody() (*SipCSeqBody, error)
- func (s *SipCSeq) GetCopy() *SipCSeq
- func (s *SipCSeq) GetCopyAsIface() SipHeader
- func (s *SipCSeq) LocalStr(*sippy_net.HostPort, bool) string
- func (n SipCSeq) Name() string
- func (s *SipCSeq) String() string
- func (s *SipCSeq) StringBody() string
- type SipCSeqBody
- type SipCallId
- func (n SipCallId) CompactName() string
- func (s *SipCallId) GetCopy() *SipCallId
- func (s *SipCallId) GetCopyAsIface() SipHeader
- func (s *SipCallId) LocalStr(hostPort *sippy_net.HostPort, compact bool) string
- func (n SipCallId) Name() string
- func (s *SipCallId) String() string
- func (s *SipCallId) StringBody() string
- type SipCiscoGUID
- func (g *SipCiscoGUID) AsH323ConfId() *SipH323ConfId
- func (n SipCiscoGUID) CompactName() string
- func (g *SipCiscoGUID) GetCopy() *SipCiscoGUID
- func (g *SipCiscoGUID) GetCopyAsIface() SipHeader
- func (g *SipCiscoGUID) LocalStr(*sippy_net.HostPort, bool) string
- func (n SipCiscoGUID) Name() string
- func (g *SipCiscoGUID) String() string
- func (g *SipCiscoGUID) StringBody() string
- type SipContact
- func (n SipContact) CompactName() string
- func (h SipContact) GetBody(config sippy_conf.Config) (*SipAddress, error)
- func (c *SipContact) GetCopy() *SipContact
- func (c *SipContact) GetCopyAsIface() SipHeader
- func (c *SipContact) LocalStr(hostPort *sippy_net.HostPort, compact bool) string
- func (c *SipContact) LocalStringBody(hostPort *sippy_net.HostPort) string
- func (n SipContact) Name() string
- func (c *SipContact) String() string
- func (c *SipContact) StringBody() string
- type SipContentLength
- func (n SipContentLength) CompactName() string
- func (s *SipContentLength) GetCopy() *SipContentLength
- func (s *SipContentLength) GetCopyAsIface() SipHeader
- func (s *SipContentLength) LocalStr(hostPort *sippy_net.HostPort, compact bool) string
- func (n SipContentLength) Name() string
- func (s *SipContentLength) String() string
- type SipContentType
- func (n SipContentType) CompactName() string
- func (s *SipContentType) GetCopy() *SipContentType
- func (s *SipContentType) GetCopyAsIface() SipHeader
- func (s *SipContentType) LocalStr(hostPort *sippy_net.HostPort, compact bool) string
- func (n SipContentType) Name() string
- func (s *SipContentType) String() string
- func (s *SipContentType) StringBody() string
- type SipDate
- func (n SipDate) CompactName() string
- func (s *SipDate) GetCopy() *SipDate
- func (s *SipDate) GetCopyAsIface() SipHeader
- func (s *SipDate) GetTime() (time.Time, error)
- func (s *SipDate) LocalStr(hostPort *sippy_net.HostPort, compact bool) string
- func (n SipDate) Name() string
- func (s *SipDate) String() string
- func (s *SipDate) StringBody() string
- type SipDiversion
- func (n SipDiversion) CompactName() string
- func (h SipDiversion) GetBody(config sippy_conf.Config) (*SipAddress, error)
- func (s *SipDiversion) GetCopy() *SipDiversion
- func (s *SipDiversion) GetCopyAsIface() SipHeader
- func (s *SipDiversion) LocalStr(hostPort *sippy_net.HostPort, compact bool) string
- func (h SipDiversion) LocalStringBody(hostPort *sippy_net.HostPort) string
- func (n SipDiversion) Name() string
- func (s *SipDiversion) String() string
- func (h SipDiversion) StringBody() string
- type SipExpires
- type SipFrom
- func (n SipFrom) CompactName() string
- func (h SipFrom) GetBody(config sippy_conf.Config) (*SipAddress, error)
- func (s *SipFrom) GetCopy() *SipFrom
- func (s *SipFrom) GetCopyAsIface() SipHeader
- func (s *SipFrom) LocalStr(hostPort *sippy_net.HostPort, compact bool) string
- func (h SipFrom) LocalStringBody(hostPort *sippy_net.HostPort) string
- func (n SipFrom) Name() string
- func (s *SipFrom) String() string
- func (h SipFrom) StringBody() string
- type SipH323ConfId
- func (s *SipH323ConfId) AsCiscoGUID() *SipCiscoGUID
- func (n SipH323ConfId) CompactName() string
- func (s *SipH323ConfId) GetCopy() *SipH323ConfId
- func (s *SipH323ConfId) GetCopyAsIface() SipHeader
- func (s *SipH323ConfId) LocalStr(*sippy_net.HostPort, bool) string
- func (n SipH323ConfId) Name() string
- func (s *SipH323ConfId) String() string
- func (s *SipH323ConfId) StringBody() string
- type SipHeader
- func CreateSipAlso(body string) []SipHeader
- func CreateSipAuthorization(body string) []SipHeader
- func CreateSipCCDiversion(body string) []SipHeader
- func CreateSipCSeq(body string) []SipHeader
- func CreateSipCallId(body string) []SipHeader
- func CreateSipCiscoGUID(body string) []SipHeader
- func CreateSipContact(body string) []SipHeader
- func CreateSipContentLength(body string) []SipHeader
- func CreateSipContentType(body string) []SipHeader
- func CreateSipDate(body string) []SipHeader
- func CreateSipDiversion(body string) []SipHeader
- func CreateSipExpires(body string) []SipHeader
- func CreateSipFrom(body string) []SipHeader
- func CreateSipH323ConfId(body string) []SipHeader
- func CreateSipMaxForwards(body string) []SipHeader
- func CreateSipProxyAuthenticate(body string) []SipHeader
- func CreateSipProxyAuthorization(body string) []SipHeader
- func CreateSipRAck(body string) []SipHeader
- func CreateSipRSeq(body string) []SipHeader
- func CreateSipReason(body string) []SipHeader
- func CreateSipRecordRoute(body string) []SipHeader
- func CreateSipReferTo(body string) []SipHeader
- func CreateSipReferredBy(body string) []SipHeader
- func CreateSipReplaces(body string) []SipHeader
- func CreateSipRequire(body string) []SipHeader
- func CreateSipRoute(body string) []SipHeader
- func CreateSipServer(body string) []SipHeader
- func CreateSipSupported(body string) []SipHeader
- func CreateSipTo(body string) []SipHeader
- func CreateSipUserAgent(body string) []SipHeader
- func CreateSipVia(body string) []SipHeader
- func CreateSipWWWAuthenticate(body string) []SipHeader
- func CreateSipWarning(body string) []SipHeader
- type SipMaxForwards
- type SipNumericHF
- type SipProxyAuthenticate
- type SipProxyAuthorization
- type SipRAck
- func (n SipRAck) CompactName() string
- func (s *SipRAck) GetBody() (*SipRAckBody, error)
- func (s *SipRAck) GetCopy() *SipRAck
- func (s *SipRAck) GetCopyAsIface() SipHeader
- func (s *SipRAck) LocalStr(*sippy_net.HostPort, bool) string
- func (n SipRAck) Name() string
- func (s *SipRAck) String() string
- func (s *SipRAck) StringBody() string
- type SipRAckBody
- type SipRSeq
- type SipReason
- func (n SipReason) CompactName() string
- func (s *SipReason) GetCopy() *SipReason
- func (s *SipReason) GetCopyAsIface() SipHeader
- func (s *SipReason) LocalStr(hostPort *sippy_net.HostPort, compact bool) string
- func (n SipReason) Name() string
- func (s *SipReason) String() string
- func (s *SipReason) StringBody() string
- type SipRecordRoute
- func (s *SipRecordRoute) AsSipRoute() *SipRoute
- func (n SipRecordRoute) CompactName() string
- func (h SipRecordRoute) GetBody(config sippy_conf.Config) (*SipAddress, error)
- func (s *SipRecordRoute) GetCopy() *SipRecordRoute
- func (s *SipRecordRoute) GetCopyAsIface() SipHeader
- func (s *SipRecordRoute) LocalStr(hostPort *sippy_net.HostPort, compact bool) string
- func (h SipRecordRoute) LocalStringBody(hostPort *sippy_net.HostPort) string
- func (n SipRecordRoute) Name() string
- func (s *SipRecordRoute) String() string
- func (h SipRecordRoute) StringBody() string
- type SipReferTo
- func (s *SipReferTo) AsSipAlso() *SipAlso
- func (n SipReferTo) CompactName() string
- func (h SipReferTo) GetBody(config sippy_conf.Config) (*SipAddress, error)
- func (s *SipReferTo) GetCopy() *SipReferTo
- func (s *SipReferTo) GetCopyAsIface() SipHeader
- func (s *SipReferTo) LocalStr(hostPort *sippy_net.HostPort, compact bool) string
- func (h SipReferTo) LocalStringBody(hostPort *sippy_net.HostPort) string
- func (n SipReferTo) Name() string
- func (s *SipReferTo) String() string
- func (h SipReferTo) StringBody() string
- type SipReferredBy
- func (n SipReferredBy) CompactName() string
- func (h SipReferredBy) GetBody(config sippy_conf.Config) (*SipAddress, error)
- func (s *SipReferredBy) GetCopy() *SipReferredBy
- func (s *SipReferredBy) GetCopyAsIface() SipHeader
- func (s *SipReferredBy) LocalStr(hostPort *sippy_net.HostPort, compact bool) string
- func (h SipReferredBy) LocalStringBody(hostPort *sippy_net.HostPort) string
- func (n SipReferredBy) Name() string
- func (s *SipReferredBy) String() string
- func (h SipReferredBy) StringBody() string
- type SipReplaces
- func (n SipReplaces) CompactName() string
- func (s *SipReplaces) GetCopy() *SipReplaces
- func (s *SipReplaces) GetCopyAsIface() SipHeader
- func (s *SipReplaces) LocalStr(hostPort *sippy_net.HostPort, compact bool) string
- func (n SipReplaces) Name() string
- func (s *SipReplaces) String() string
- func (s *SipReplaces) StringBody() string
- type SipRequire
- func (n SipRequire) CompactName() string
- func (s *SipRequire) GetBody() *tagListBody
- func (s *SipRequire) GetCopy() *SipRequire
- func (s *SipRequire) GetCopyAsIface() SipHeader
- func (s *SipRequire) HasTag(tag string) bool
- func (s *SipRequire) LocalStr(*sippy_net.HostPort, bool) string
- func (n SipRequire) Name() string
- func (s *SipRequire) String() string
- func (s *SipRequire) StringBody() string
- type SipRoute
- func (n SipRoute) CompactName() string
- func (h SipRoute) GetBody(config sippy_conf.Config) (*SipAddress, error)
- func (s *SipRoute) GetCopy() *SipRoute
- func (s *SipRoute) GetCopyAsIface() SipHeader
- func (s *SipRoute) LocalStr(hostPort *sippy_net.HostPort, compact bool) string
- func (h SipRoute) LocalStringBody(hostPort *sippy_net.HostPort) string
- func (n SipRoute) Name() string
- func (s *SipRoute) String() string
- func (h SipRoute) StringBody() string
- type SipServer
- func (s *SipServer) AsSipUserAgent() *SipUserAgent
- func (n SipServer) CompactName() string
- func (s *SipServer) GetCopy() *SipServer
- func (s *SipServer) GetCopyAsIface() SipHeader
- func (s *SipServer) LocalStr(*sippy_net.HostPort, bool) string
- func (n SipServer) Name() string
- func (s *SipServer) String() string
- func (s *SipServer) StringBody() string
- type SipSupported
- func (n SipSupported) CompactName() string
- func (s *SipSupported) GetBody() *tagListBody
- func (s *SipSupported) GetCopy() *SipSupported
- func (s *SipSupported) GetCopyAsIface() SipHeader
- func (s *SipSupported) HasTag(tag string) bool
- func (s *SipSupported) LocalStr(*sippy_net.HostPort, bool) string
- func (n SipSupported) Name() string
- func (s *SipSupported) String() string
- func (s *SipSupported) StringBody() string
- type SipTo
- func (n SipTo) CompactName() string
- func (h SipTo) GetBody(config sippy_conf.Config) (*SipAddress, error)
- func (s *SipTo) GetCopy() *SipTo
- func (s *SipTo) GetCopyAsIface() SipHeader
- func (s *SipTo) LocalStr(hostPort *sippy_net.HostPort, compact bool) string
- func (h SipTo) LocalStringBody(hostPort *sippy_net.HostPort) string
- func (n SipTo) Name() string
- func (s *SipTo) String() string
- func (h SipTo) StringBody() string
- type SipURL
- func (s *SipURL) GetAddr(config sippy_conf.Config) *sippy_net.HostPort
- func (s *SipURL) GetCopy() *SipURL
- func (s *SipURL) GetParams() []string
- func (s *SipURL) GetUserParams() []string
- func (s *SipURL) LocalStr(hostPort *sippy_net.HostPort) string
- func (s *SipURL) SetParams(params []string)
- func (s *SipURL) SetUserParams(userParams []string)
- func (s *SipURL) String() string
- type SipUserAgent
- func (s *SipUserAgent) AsSipServer() *SipServer
- func (n SipUserAgent) CompactName() string
- func (s *SipUserAgent) GetCopy() *SipUserAgent
- func (s *SipUserAgent) GetCopyAsIface() SipHeader
- func (s *SipUserAgent) LocalStr(*sippy_net.HostPort, bool) string
- func (n SipUserAgent) Name() string
- func (s *SipUserAgent) String() string
- func (s *SipUserAgent) StringBody() string
- type SipVia
- func (n SipVia) CompactName() string
- func (s *SipVia) GetBody() (*SipViaBody, error)
- func (s *SipVia) GetCopy() *SipVia
- func (s *SipVia) GetCopyAsIface() SipHeader
- func (s *SipVia) LocalStr(hostPort *sippy_net.HostPort, compact bool) string
- func (s *SipVia) LocalStringBody(hostPort *sippy_net.HostPort) string
- func (n SipVia) Name() string
- func (s *SipVia) String() string
- func (s *SipVia) StringBody() string
- type SipViaBody
- func (b *SipViaBody) GenBranch()
- func (b *SipViaBody) GetAddr(config sippy_conf.Config) (string, string)
- func (b *SipViaBody) GetBranch() string
- func (b *SipViaBody) GetTAddr(config sippy_conf.Config) *sippy_net.HostPort
- func (b *SipViaBody) HasRPort() bool
- func (b *SipViaBody) SetRPort(v *string)
- func (b *SipViaBody) SetReceived(v string)
- type SipWWWAuthenticate
- func (s *SipWWWAuthenticate) Algorithm() (string, error)
- func (n SipWWWAuthenticate) CompactName() string
- func (s *SipWWWAuthenticate) GenAuthHF(username, password, method, uri, entityBody string) (SipHeader, error)
- func (s *SipWWWAuthenticate) GetBody() (*SipWWWAuthenticateBody, error)
- func (s *SipWWWAuthenticate) GetCopy() *SipWWWAuthenticate
- func (s *SipWWWAuthenticate) GetCopyAsIface() SipHeader
- func (s *SipWWWAuthenticate) LocalStr(hostPort *sippy_net.HostPort, compact bool) string
- func (s *SipWWWAuthenticate) LocalStringBody(hostPort *sippy_net.HostPort) string
- func (n SipWWWAuthenticate) Name() string
- func (s *SipWWWAuthenticate) String() string
- func (s *SipWWWAuthenticate) StringBody() string
- func (s *SipWWWAuthenticate) SupportedAlgorithm() (bool, error)
- type SipWWWAuthenticateBody
- type SipWarning
- func (n SipWarning) CompactName() string
- func (s *SipWarning) GetCopy() *SipWarning
- func (s *SipWarning) GetCopyAsIface() SipHeader
- func (s *SipWarning) LocalStr(hostPort *sippy_net.HostPort, compact bool) string
- func (n SipWarning) Name() string
- func (s *SipWarning) String() string
- func (s *SipWarning) StringBody() string
- type TID
Constants ¶
const ( Rfc3261UserUnreserved = "&=+$,;?/#" Rfc3261Unreserved = "-_.!~*'()" )
Variables ¶
This section is empty.
Functions ¶
func CreateSipAddressHFs ¶
func CreateSipAddressHFs(body string) []*sipAddressHF
func DigestCalcHA1 ¶
func DigestCalcResponse ¶
func NewSipGenericHF ¶
func NewSipGenericHF(name, body string) *sipGenericHF
Types ¶
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) GetCopyAsIface ¶
func (SipAlso) LocalStringBody ¶
func (h SipAlso) LocalStringBody(hostPort *sippy_net.HostPort) 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) 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 (b *SipAuthorizationBody) GetCopy() *SipAuthorizationBody
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) 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 (SipCSeq) CompactName ¶
func (n SipCSeq) CompactName() string
func (*SipCSeq) GetBody ¶
func (s *SipCSeq) GetBody() (*SipCSeqBody, error)
func (*SipCSeq) GetCopyAsIface ¶
func (*SipCSeq) StringBody ¶
type SipCSeqBody ¶
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 (SipCallId) CompactName ¶
func (n SipCallId) CompactName() string
func (*SipCallId) GetCopyAsIface ¶
func (*SipCallId) StringBody ¶
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) 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) 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) 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) 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 (SipDate) CompactName ¶
func (n SipDate) CompactName() string
func (*SipDate) GetCopyAsIface ¶
func (*SipDate) StringBody ¶
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) 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) 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) GetCopyAsIface ¶
func (SipFrom) LocalStringBody ¶
func (h SipFrom) LocalStringBody(hostPort *sippy_net.HostPort) 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) 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 CreateSipAuthorization ¶
func CreateSipCCDiversion ¶
func CreateSipCSeq ¶
func CreateSipCallId ¶
func CreateSipCiscoGUID ¶
func CreateSipContact ¶
func CreateSipContentLength ¶
func CreateSipContentType ¶
func CreateSipDate ¶
func CreateSipDiversion ¶
func CreateSipExpires ¶
func CreateSipFrom ¶
func CreateSipH323ConfId ¶
func CreateSipMaxForwards ¶
func CreateSipRAck ¶
func CreateSipRSeq ¶
func CreateSipReason ¶
func CreateSipRecordRoute ¶
func CreateSipReferTo ¶
func CreateSipReferredBy ¶
func CreateSipReplaces ¶
func CreateSipRequire ¶
func CreateSipRoute ¶
func CreateSipServer ¶
func CreateSipSupported ¶
func CreateSipTo ¶
func CreateSipUserAgent ¶
func CreateSipVia ¶
func CreateSipWarning ¶
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) 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 (s *SipProxyAuthenticate) GetCopy() *SipProxyAuthenticate
func (*SipProxyAuthenticate) GetCopyAsIface ¶
func (s *SipProxyAuthenticate) GetCopyAsIface() SipHeader
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
type SipRAck ¶
type SipRAck struct {
// contains filtered or unexported fields
}
func NewSipRAck ¶
func (SipRAck) CompactName ¶
func (n SipRAck) CompactName() string
func (*SipRAck) GetBody ¶
func (s *SipRAck) GetBody() (*SipRAckBody, error)
func (*SipRAck) GetCopyAsIface ¶
func (*SipRAck) StringBody ¶
type SipRAckBody ¶
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) GetCopyAsIface ¶
type SipReason ¶
type SipReason struct {
// contains filtered or unexported fields
}
func NewSipReason ¶
func (SipReason) CompactName ¶
func (n SipReason) CompactName() string
func (*SipReason) GetCopyAsIface ¶
func (*SipReason) StringBody ¶
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) 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) 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) 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) 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) GetCopy ¶
func (s *SipRequire) GetCopy() *SipRequire
func (*SipRequire) GetCopyAsIface ¶
func (s *SipRequire) GetCopyAsIface() SipHeader
func (*SipRequire) LocalStr ¶
func (s *SipRequire) LocalStr(*sippy_net.HostPort, bool) 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) GetCopyAsIface ¶
func (SipRoute) LocalStringBody ¶
func (h SipRoute) LocalStringBody(hostPort *sippy_net.HostPort) string
func (SipRoute) StringBody ¶
func (h SipRoute) StringBody() string
type SipServer ¶
type SipServer struct { Server string // contains filtered or unexported fields }
func NewSipServer ¶
func (*SipServer) AsSipUserAgent ¶
func (s *SipServer) AsSipUserAgent() *SipUserAgent
func (SipServer) CompactName ¶
func (n SipServer) CompactName() string
func (*SipServer) GetCopyAsIface ¶
func (*SipServer) StringBody ¶
type SipSupported ¶
type SipSupported struct {
// contains filtered or unexported fields
}
func (SipSupported) CompactName ¶
func (n SipSupported) CompactName() string
func (*SipSupported) GetCopy ¶
func (s *SipSupported) GetCopy() *SipSupported
func (*SipSupported) GetCopyAsIface ¶
func (s *SipSupported) GetCopyAsIface() SipHeader
func (*SipSupported) LocalStr ¶
func (s *SipSupported) LocalStr(*sippy_net.HostPort, bool) 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) GetCopyAsIface ¶
func (SipTo) LocalStringBody ¶
func (h SipTo) LocalStringBody(hostPort *sippy_net.HostPort) 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 ParseSipURL ¶
func (*SipURL) GetUserParams ¶
func (*SipURL) SetUserParams ¶
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) 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 (SipVia) CompactName ¶
func (n SipVia) CompactName() string
func (*SipVia) GetBody ¶
func (s *SipVia) GetBody() (*SipViaBody, error)
func (*SipVia) GetCopyAsIface ¶
func (*SipVia) LocalStringBody ¶
func (*SipVia) StringBody ¶
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 (s *SipWWWAuthenticate) GetBody() (*SipWWWAuthenticateBody, error)
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) 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) String ¶
func (s *SipWarning) String() string
func (*SipWarning) StringBody ¶
func (s *SipWarning) StringBody() string
Source Files ¶
- interfaces.go
- name.go
- rtid.go
- sip_address.go
- sip_address_hf.go
- sip_also.go
- sip_authorization.go
- sip_call_id.go
- sip_ccdiversion.go
- sip_cisco_guid.go
- sip_contact.go
- sip_content_length.go
- sip_content_type.go
- sip_cseq.go
- sip_date.go
- sip_diversion.go
- sip_expires.go
- sip_from.go
- sip_generic_hf.go
- sip_h323_conf_id.go
- sip_max_forwards.go
- sip_numeric_hf.go
- sip_proxy_authenticate.go
- sip_proxy_authorization.go
- sip_rack.go
- sip_reason.go
- sip_record_route.go
- sip_refer_to.go
- sip_referred_by.go
- sip_replaces.go
- sip_require.go
- sip_route.go
- sip_rseq.go
- sip_server.go
- sip_supported.go
- sip_to.go
- sip_url.go
- sip_user_agent.go
- sip_via.go
- sip_warning.go
- sip_www_authenticate.go
- tag_list_hf.go
- tid.go