You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
368 B
Go
16 lines
368 B
Go
3 years ago
|
package icspacketer
|
||
|
|
||
|
import (
|
||
|
"gitlab.com/cinnamon/voiceagent/icserror"
|
||
|
)
|
||
|
|
||
|
//SIP/RTP parser interface
|
||
|
type Packeter interface {
|
||
|
GetPacketData(packet interface{}) *icserror.IcsError
|
||
|
//GetPacketData(addr []*icsnet.IcsNetAddr, packet []byte) *icserror.IcsError
|
||
|
}
|
||
|
|
||
|
func PutPacket(packet interface{}, pt Packeter) *icserror.IcsError {
|
||
|
return pt.GetPacketData(packet)
|
||
|
}
|