Versions in this module Expand all Collapse all v1 v1.1.8 Oct 17, 2022 v1.1.7 Oct 17, 2022 Changes in this version + var ErrPort = errors.New("invalid port") + 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 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 struct + Logger *log.LogrusLogger + func (ml *MyLogger) Level() string