-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
发送设备目录查询信息 不支持的命令 #9
Comments
你好,目前关于文件目录的Catlog命令以及返回响应已经实现了,并且将其返回的命令响应已经通过map的形式存储 gb包下message.go源文件中的 messageHandler 中: messageHandler = map[string]gosip.RequestHandler{
// 通知
"Notify:Keepalive": keepaliveHandler,
// 响应
// 查询设备信息响应
"Response:DeviceInfo": deviceInfoHandler,
"Response:Catalog": catalogHandler,
} 这个map的key在 根据你的描述,我判断是目前程序不支持其他的query 目录请求;当前版本对于设备信息查询的支持,只支持以下实现:
我判断 |
2023-04-06 16:38:37.664 DEBUG gb/message.go:30 MESSAGE消息体: 个人看到的是因为在下发查询设备信息的时候,就走到了message.go了,我debug了下,发现好像是服务端到客户端的sdp未发出去 |
`2023-04-06 16:38:37.676 DEBUG gb/command.go:44 发送设备目录查询信息: |
在你发出的log中,在
在消息体body中,会以标准的
并没有以 |
这段代码的一个端口参数未加上,您这边默认用的5060,但是可能设备的端口不是5060,pr我就不提了,可以从device去获取port端口了
|
嗯,后续我会修复这个函数。 |
这个问题应该是Query的消息也走到了
只是如果是“Query:DeviceInfo”或者是“Query:Catalog”,也会走到messageHandler里面,有点奇怪,我还找到哪里,不过目前测试是没问题了,可能是因为服务端和客户端的端口在程序里面都是5060,ip都是本机IP,所以死循环了,发送也是接受,所以未找到消息类型 谢谢,没啥问题,我先关了 |
@pans0911 看下回复的xml是不是gb2312格式,我也遇到了这个问题,可以尝试下 #13 |
gb下的command.go发送Query的Catalog命令时,显示不支持的Message方法实现,本人golang功底比较浅,望指教
The text was updated successfully, but these errors were encountered: