mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
view: 282|reply: 1
打印 prevThread nextThread

BVCU获取Session失败,65517错误

[copyURL]

2

主题

2

帖子

20

积分

newBie

Rank: 1

积分
20
jumpTo
owner
poston 2023-10-26 09:48 | authorOnly 回帖奖励 |倒序浏览 |阅读模式
BVCU编译成功后,运行时BVCU_Initialize和BVCU_Login都成功了,但是回调里提示Session connect error,报-65517错误,代码如下:


    BVCU_ServerParam serverParam;    memset(&serverParam, 0, sizeof(serverParam));    serverParam.iSize = sizeof(serverParam);    strcpy(serverParam.szServerAddr, "192.168.3.124");                // 设置要登录的服务器地址,也可以是域名    serverParam.iServerPort = 9780;                         // 设置要登录的服务器的登录端口    strcpy(serverParam.szClientID, "CU_123456");                        // 设置用户id    strcpy(serverParam.szUserAgent, "Test");                // 设置应用程序名称    strcpy(serverParam.szUserName, "admin");                // 设置登录用户名    strcpy(serverParam.szPassword, "123456");               // 设置登录密码    serverParam.iCmdProtoType = BVCU_PROTOTYPE_TCP;                        // 传输协议目前只支持TCP    serverParam.iTimeOut = 60 * 1000;                       // 设置登录的超时时间,毫秒为单位,必须大于0    serverParam.OnNotify = OnNotifySession;                 // 设置服务器的通知回调    serverParam.OnEvent = OnEventSession;                   // 设置服务器的事件回调    BvResult = BVCU_Login(&hSession, &serverParam);
reply

使用道具 report

1

主题

580

帖子

2001

积分

vipMem

Rank: 6Rank: 6

积分
2001
sofa
poston 2023-10-26 15:27 | authorOnly
你好,是不是修改服务器端口了,默认 9780是http端口,9701是sip端口,BVCU是走sip端口的。
reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-5-3 20:07 , Processed in 0.057620 second(s), 19 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList