Documentation ¶
Index ¶
- 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 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 ¶
This section is empty.
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 ListenUDPInPortRange ¶
func NewLogrusLogger ¶
func StrToUint16 ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.