Documentation ¶
Overview ¶
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.
Copyright (c) 2003-2005 Maxim Sobolev. All rights reserved. Copyright (c) 2006-2015 Sippy Software, Inc. All rights reserved. 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.
Copyright (c) 2006-2015 Sippy Software, Inc. All rights reserved. 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.
Copyright (c) 2003-2005 Maxim Sobolev. All rights reserved. Copyright (c) 2006-2015 Sippy Software, Inc. All rights reserved. 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.
Copyright (c) 2003-2005 Maxim Sobolev. All rights reserved. Copyright (c) 2006-2015 Sippy Software, Inc. All rights reserved. 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.
Copyright (c) 2003-2005 Maxim Sobolev. All rights reserved. Copyright (c) 2006-2015 Sippy Software, Inc. All rights reserved. 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.
Index ¶
- type SdpConnecton
- func (self *SdpConnecton) GetAType() string
- func (self *SdpConnecton) GetAddr() string
- func (self *SdpConnecton) GetCopy() *SdpConnecton
- func (self *SdpConnecton) LocalStr(hostport *sippy_net.HostPort) string
- func (self *SdpConnecton) SetAType(atype string)
- func (self *SdpConnecton) SetAddr(addr string)
- func (self *SdpConnecton) String() string
- type SdpGeneric
- type SdpHeader
- type SdpMedia
- func (self *SdpMedia) GetCopy() *SdpMedia
- func (self *SdpMedia) GetFormats() []string
- func (self *SdpMedia) GetPort() string
- func (self *SdpMedia) GetTransport() string
- func (self *SdpMedia) HasFormat(format string) bool
- func (self *SdpMedia) LocalStr(hostport *sippy_net.HostPort) string
- func (self *SdpMedia) SetFormats(formats []string)
- func (self *SdpMedia) SetPort(port string)
- func (self *SdpMedia) String() string
- type SdpMediaDescription
- func (self *SdpMediaDescription) AddHeader(name, header string)
- func (self *SdpMediaDescription) GetAHeaders() []string
- func (self *SdpMediaDescription) GetCHeader() *SdpConnecton
- func (self *SdpMediaDescription) GetCopy() *SdpMediaDescription
- func (self *SdpMediaDescription) GetMHeader() *SdpMedia
- func (self *SdpMediaDescription) IsOnHold() bool
- func (self *SdpMediaDescription) LocalStr(hostport *sippy_net.HostPort, noC bool) string
- func (self *SdpMediaDescription) NeedsUpdate() bool
- func (self *SdpMediaDescription) RemoveAHeader(hdr string)
- func (self *SdpMediaDescription) SanityCheck() error
- func (self *SdpMediaDescription) SetAHeaders(a_headers []string)
- func (self *SdpMediaDescription) SetCHeader(c_header *SdpConnecton)
- func (self *SdpMediaDescription) SetCHeaderAddr(addr string)
- func (self *SdpMediaDescription) SetFormats(formats []string)
- func (self *SdpMediaDescription) SetNeedsUpdate(needs_update bool)
- func (self *SdpMediaDescription) String() string
- type SdpOrigin
- type Sdp_header_and_name
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SdpConnecton ¶
type SdpConnecton struct {
// contains filtered or unexported fields
}
func ParseSdpConnecton ¶
func ParseSdpConnecton(body string) *SdpConnecton
func (*SdpConnecton) GetAType ¶
func (self *SdpConnecton) GetAType() string
func (*SdpConnecton) GetAddr ¶
func (self *SdpConnecton) GetAddr() string
func (*SdpConnecton) GetCopy ¶
func (self *SdpConnecton) GetCopy() *SdpConnecton
func (*SdpConnecton) LocalStr ¶
func (self *SdpConnecton) LocalStr(hostport *sippy_net.HostPort) string
func (*SdpConnecton) SetAType ¶
func (self *SdpConnecton) SetAType(atype string)
func (*SdpConnecton) SetAddr ¶
func (self *SdpConnecton) SetAddr(addr string)
func (*SdpConnecton) String ¶
func (self *SdpConnecton) String() string
type SdpGeneric ¶
type SdpGeneric struct {
// contains filtered or unexported fields
}
func ParseSdpGeneric ¶
func ParseSdpGeneric(body string) *SdpGeneric
func (*SdpGeneric) GetCopy ¶
func (self *SdpGeneric) GetCopy() *SdpGeneric
func (*SdpGeneric) LocalStr ¶
func (self *SdpGeneric) LocalStr(hostport *sippy_net.HostPort) string
func (*SdpGeneric) String ¶
func (self *SdpGeneric) String() string
type SdpMedia ¶
type SdpMedia struct {
// contains filtered or unexported fields
}
func ParseSdpMedia ¶
func (*SdpMedia) GetFormats ¶
func (*SdpMedia) GetTransport ¶
func (*SdpMedia) SetFormats ¶
WARNING! Use this function only if know what you do! Otherwise consider using the sdpMediaDescription.SetFormats() instead.
type SdpMediaDescription ¶
type SdpMediaDescription struct {
// contains filtered or unexported fields
}
func NewSdpMediaDescription ¶
func NewSdpMediaDescription() *SdpMediaDescription
func (*SdpMediaDescription) AddHeader ¶
func (self *SdpMediaDescription) AddHeader(name, header string)
func (*SdpMediaDescription) GetAHeaders ¶
func (self *SdpMediaDescription) GetAHeaders() []string
func (*SdpMediaDescription) GetCHeader ¶
func (self *SdpMediaDescription) GetCHeader() *SdpConnecton
func (*SdpMediaDescription) GetCopy ¶
func (self *SdpMediaDescription) GetCopy() *SdpMediaDescription
func (*SdpMediaDescription) GetMHeader ¶
func (self *SdpMediaDescription) GetMHeader() *SdpMedia
func (*SdpMediaDescription) IsOnHold ¶
func (self *SdpMediaDescription) IsOnHold() bool
func (*SdpMediaDescription) LocalStr ¶
func (self *SdpMediaDescription) LocalStr(hostport *sippy_net.HostPort, noC bool) string
func (*SdpMediaDescription) NeedsUpdate ¶
func (self *SdpMediaDescription) NeedsUpdate() bool
func (*SdpMediaDescription) RemoveAHeader ¶
func (self *SdpMediaDescription) RemoveAHeader(hdr string)
func (*SdpMediaDescription) SanityCheck ¶
func (self *SdpMediaDescription) SanityCheck() error
func (*SdpMediaDescription) SetAHeaders ¶
func (self *SdpMediaDescription) SetAHeaders(a_headers []string)
func (*SdpMediaDescription) SetCHeader ¶
func (self *SdpMediaDescription) SetCHeader(c_header *SdpConnecton)
func (*SdpMediaDescription) SetCHeaderAddr ¶
func (self *SdpMediaDescription) SetCHeaderAddr(addr string)
func (*SdpMediaDescription) SetFormats ¶
func (self *SdpMediaDescription) SetFormats(formats []string)
func (*SdpMediaDescription) SetNeedsUpdate ¶
func (self *SdpMediaDescription) SetNeedsUpdate(needs_update bool)
func (*SdpMediaDescription) String ¶
func (self *SdpMediaDescription) String() string
type SdpOrigin ¶
type SdpOrigin struct {
// contains filtered or unexported fields
}
func NewSdpOrigin ¶
func ParseSdpOrigin ¶
func (*SdpOrigin) GetSessionId ¶
func (*SdpOrigin) GetVersion ¶
func (*SdpOrigin) IncVersion ¶
func (self *SdpOrigin) IncVersion()