Documentation ¶
Index ¶
- Variables
- func AddParamsToContact(contact *sip.ContactHeader, expires *sip.Expires)
- func BuildContactHeader(name string, from, to sip.Message, expires *sip.Expires)
- func GetIP(addr string) string
- func GetPort(addr string) string
- func ListenUDPInPortRange(portMin, portMax int, laddr *net.UDPAddr) (*net.UDPConn, error)
- func NewLogrusLogger(level logrus.Level) *log.LogrusLogger
- func StrToUint16(str string) uint16
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 ListenUDPInPortRange ¶ added in v1.0.1
func NewLogrusLogger ¶
func NewLogrusLogger(level logrus.Level) *log.LogrusLogger
func StrToUint16 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.