Versions in this module Expand all Collapse all v1 v1.0.4 Aug 20, 2021 v1.0.3 Aug 20, 2021 v1.0.2 Aug 20, 2021 v1.0.1 Aug 20, 2021 v1.0.0 Aug 19, 2021 Changes in this version + const EventHeaderSize + const HeaderSize + const Version + var ErrBadVersion = errors.New("bad rtp version header") + var ErrExtendedHeadersNotSupported = errors.New("rtp extended headers not supported") + func CharToDtmf(ch byte) (event uint8, err error) + func DtmfToChar(event uint8) (byte, error) + func Listen(host string) (sock net.PacketConn, err error) + type EventHeader struct + Duration uint16 + E bool + Event uint8 + R bool + Volume uint8 + func (h *EventHeader) Read(b []byte) + func (h *EventHeader) Write(b []byte) + type Frame [160]int16 + type Header struct + Mark bool + PT uint8 + Pad bool + Seq uint16 + Ssrc uint32 + TS uint32 + func (h *Header) Read(b []byte) error + func (h *Header) Write(b []byte) []byte + type Session struct + C <-chan *Frame + E <-chan error + Header Header + Peer *net.UDPAddr + R chan<- *Frame + Sock *net.UDPConn + func NewSession(host string) (rs *Session, err error) + func (rs *Session) Close() + func (rs *Session) CloseAfterError() + func (rs *Session) Send(frame *Frame) (err error) + func (rs *Session) SendDTMF(digit byte) error + func (rs *Session) SendRaw(pt uint8, data []byte, samps uint32) (err error)