Remove PCMU for two way for DVRIP source #1111

This commit is contained in:
Alex X
2024-05-18 17:14:25 +03:00
parent 2b3e6a2730
commit 686fb374e9
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ func (c *Client) Play() error {
}
func (c *Client) Talk() error {
format := `{"Name":"OPTalk","SessionID":"0x%08X","OPTalk":{"Action":"%s","AudioFormat":{"EncodeType":"G711_ALAW"}}}` + "\x0A\x00"
format := `{"Name":"OPTalk","SessionID":"0x%08X","OPTalk":{"Action":"%s","AudioFormat":{"EncodeType":"G711_ALAW"}}}` + "\x0A\x00"
data := fmt.Sprintf(format, c.session, "Claim")
if _, err := c.WriteCmd(OPTalkClaim, []byte(data)); err != nil {