Documentation ¶
Index ¶
- Constants
- Variables
- func AddParamsToContact(contact *sip.ContactHeader, expires *sip.Expires)
- func BuildContactHeader(name string, from, to sip.Message, expires *sip.Expires)
- func GetBranchID(msg sip.Message) sip.MaybeString
- func GetIP(addr string) string
- func GetLoggers() map[string]*MyLogger
- func GetOutboundIP() (localIP net.IP, err error)
- func GetPort(addr string) string
- func ListenUDPInPortRange(portMin, portMax int, laddr *net.UDPAddr) (*net.UDPConn, error)
- func NewLogrusLogger(level log.Level, prefix string, fields log.Fields) log.Logger
- func SetLogLevel(prefix string, level log.Level) error
- func StrToUint16(str string) uint16
- type MyLogger
Constants ¶
View Source
const ( // Signaling ServerDefaultPort int = 5060 ClientDefaultPort int = 5080 ServerIP string = "10.0.2.22" SenderName string = "RPiSender" SenderPass string = "100" ReceiverName string = "RPiReceiver" ReceiverPass string = "200" DefaultExpires uint32 = 1800 // Transferring RtpRecvPort int = 6422 RtpSendPort int = 6421 RtpRecvAddr string = "10.0.1.15" RtpSendAddr string = "10.0.3.151" PT uint8 = 100 SSRC uint32 = 5000 Clockrate uint32 = 1000 MTU uint16 = 1500 // Multiplex demo SSRCtemperature uint32 = 5001 SSRChumidity uint32 = 5002 SSRCpressure uint32 = 5003 // Simulcast demo SSRChighRes uint32 = 5004 SSRClowRes uint32 = 5005 )
Variables ¶
View Source
var (
ErrPort = errors.New("invalid port")
)
Functions ¶
func AddParamsToContact ¶
func AddParamsToContact(contact *sip.ContactHeader, expires *sip.Expires)
func BuildContactHeader ¶
func GetBranchID ¶
func GetBranchID(msg sip.Message) sip.MaybeString
func GetLoggers ¶
func GetOutboundIP ¶
Get preferred outbound ip of this machine
func ListenUDPInPortRange ¶
func NewLogrusLogger ¶
func StrToUint16 ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.