设为首页收藏本站

AnyChat技术支持论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz

关于AnyChatQueue项目的问题咨询

查看数: 29323 | 评论数: 59 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2015-7-23 09:42

正文摘要:

您好,我在使用anychat做二次开发时,遇到如下问题: 背景:我需要做的是打开页面时,自动初始化并且连接服务器,从session获取客服信息直接登录服务器,获取营业厅信息并自动进入其中某个营业厅。 效果:客服登录 ...

回复

佰锐科技-李永星 发表于 2015-8-3 17:05:58
您好!
roomid=-1)        Elapse:119 ms
08-03 16:00:20.707    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:20(714)        Invoke        LogoutServer
admin 发表于 2015-8-3 17:04:38
是的
liweiqiang888 发表于 2015-8-3 17:00:31
admin 发表于 2015-8-3 16:17
您好,根据日志来看,是您主动调用了API:Logout导致断线,请检查一下代码,谢谢!

从日志上看是Android端调了logout吗?
admin 发表于 2015-8-3 16:17:48
您好,根据日志来看,是您主动调用了API:Logout导致断线,请检查一下代码,谢谢!
liweiqiang888 发表于 2015-8-3 16:09:46
08-03 16:00:04.307    8543-8543/com.uaf.activity D/dalvikvm﹕ GC_FOR_ALLOC freed 225K, 12% free 46740K/52708K, paused 34ms, total 34ms
08-03 16:00:19.217    8543-9018/com.uaf.activity I/ANYCHAT﹕ 16:00:19(223)        Area(10001) Object Event, unknow event:401, dwParam1:0
08-03 16:00:19.217    8543-9018/com.uaf.activity I/ANYCHAT﹕ 16:00:19(226)        Message        OnVideoCallEvent(EventType:1, UserId:123, ErrorCode:0, dwFlags:0x0, dwParam:0
08-03 16:00:19.267    8543-8543/com.uaf.activity D/MainActivity (dwParam-房间号)﹕ 0
08-03 16:00:19.267    8543-8543/com.uaf.activity D/MainActivity (REQUEST)﹕ BRAC_VIDEOCALL_EVENT_REPLY
08-03 16:00:19.267    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:19(275)        Invoke        VideoCallControl(EventType:2, UserId:123, ErrorCode:0, dwFlags:0, dwParam:10, UserStr:李莉)=0
08-03 16:00:19.287    8543-9018/com.uaf.activity I/ANYCHAT﹕ 16:00:19(292)        Message        OnVideoCallEvent(EventType:3, UserId:123, ErrorCode:0, dwFlags:0x0, dwParam:1
08-03 16:00:19.307    8543-8543/com.uaf.activity D/MainActivity (dwParam-房间号)﹕ 1
08-03 16:00:19.307    8543-8543/com.uaf.activity D/MainActivity (START)﹕ BRAC_VIDEOCALL_EVENT_START
08-03 16:00:19.307    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:19(317)        Invoke        EnterRoom(roomid=1)
08-03 16:00:19.397    8543-9018/com.uaf.activity I/ANYCHAT﹕ 16:00:19(404)        Message        OnEnterRoom(roomid=1,errorcode=0,siteindex=1)
08-03 16:00:19.397    8543-9018/com.uaf.activity I/ANYCHAT﹕ 16:00:19(406)        Audio Playback Device Init(0, 1, 16000, 16), Default Playback Driver
08-03 16:00:19.397    8543-9018/com.uaf.activity I/ANYCHAT﹕ 16:00:19(407)        Message        OnReceiveOnlineUser(count=2,roomid=1)
08-03 16:00:19.397    8543-9018/com.uaf.activity I/ANYCHAT﹕ 16:00:19(408)        On Remote UserCameraControl(dwUserId:123, bOpen:1)
08-03 16:00:19.397    8543-9018/com.uaf.activity I/ANYCHAT﹕ 16:00:19(409)        On Remote UserSpeakControl(dwUserId:123, bOpen:1)
08-03 16:00:19.407    8543-8543/com.uaf.activity D/ANYCHAT﹕ InitAudioPlayer, profile: 1
08-03 16:00:19.437    8543-8543/com.uaf.activity D/ANYCHAT﹕ mMinPlayBufSize = 2560
08-03 16:00:19.437    8543-8543/com.uaf.activity D/MainActivity (dwRoomId)﹕ 1
08-03 16:00:19.437    8543-9273/com.uaf.activity D/ANYCHAT﹕ audio play....
08-03 16:00:19.437    8543-8543/com.uaf.activity D/MainActivity (dwErrorCode)﹕ 0
08-03 16:00:19.477    8543-8543/com.uaf.activity I/ActivityManager﹕ Timeline: Activity_launch_request id:com.uaf.activity time:32241006
08-03 16:00:19.507    8543-8543/com.uaf.activity D/VideoActivity (UserID)﹕ 123
08-03 16:00:19.607    8543-8543/com.uaf.activity D/dalvikvm﹕ GC_FOR_ALLOC freed 489K, 11% free 47009K/52708K, paused 16ms, total 16ms
08-03 16:00:19.627    8543-8543/com.uaf.activity I/dalvikvm-heap﹕ Grow heap (frag case) to 57.359MB for 11173904-byte allocation
08-03 16:00:19.667    8543-8543/com.uaf.activity D/dalvikvm﹕ GC_FOR_ALLOC freed 99K, 9% free 57963K/63624K, paused 14ms, total 15ms
08-03 16:00:19.677    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:19(682)        Invoke        UserCameraControl(userid=123,bOpen=1)
08-03 16:00:19.677    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:19(682)        Invoke        UserSpeakControl(userid=123,bOpen=1)
08-03 16:00:19.687    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:19(691)        Invoke        UserCameraControl(userid=-1,bOpen=1)
08-03 16:00:19.687    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:19(692)        Invoke        UserSpeakControl(userid=-1,bOpen=1)
08-03 16:00:19.997    8543-8543/com.uaf.activity I/ANYCHAT﹕ allocate: device orientation=0, camera orientation=270, facing=1
08-03 16:00:20.007    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:20(12)        APPLOG        Camera Preview size: 1280 x 720
08-03 16:00:20.007    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:20(13)        APPLOG        Camera Preview size: 960 x 720
08-03 16:00:20.007    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:20(13)        APPLOG        Camera Preview size: 864 x 480
08-03 16:00:20.007    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:20(14)        APPLOG        Camera Preview size: 800 x 480
08-03 16:00:20.007    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:20(14)        APPLOG        Camera Preview size: 768 x 432
08-03 16:00:20.007    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:20(15)        APPLOG        Camera Preview size: 720 x 480
08-03 16:00:20.007    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:20(15)        APPLOG        Camera Preview size: 640 x 480
08-03 16:00:20.007    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:20(16)        APPLOG        Camera Preview size: 576 x 432
08-03 16:00:20.007    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:20(17)        APPLOG        Camera Preview size: 480 x 320
08-03 16:00:20.007    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:20(17)        APPLOG        Camera Preview size: 384 x 288
08-03 16:00:20.007    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:20(18)        APPLOG        Camera Preview size: 352 x 288
08-03 16:00:20.007    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:20(18)        APPLOG        Camera Preview size: 320 x 240
08-03 16:00:20.007    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:20(19)        APPLOG        Camera FrameRate: 7500 , 30000
08-03 16:00:20.087    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:20(95)        Invoke        SetSDKOption(BRAC_SO_CORESDK_EXTVIDEOINPUT=1)
08-03 16:00:20.087    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:20(96)        Invoke        SetInputVideoFormat(pixfmt:8, 320x240, 30fps, flags:0)
08-03 16:00:20.087    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:20(96)        video init finish:320x240, NV21, fps:30, codecid:1
08-03 16:00:20.097    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:20(100)        Invoke        SetSDKOption(BRAC_SO_CORESDK_EXTVIDEOINPUT=1)
08-03 16:00:20.097    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:20(103)        Invoke        SetInputVideoFormat(pixfmt:8, 320x240, 30fps, flags:0)
08-03 16:00:20.097    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:20(103)        video init finish:320x240, NV21, fps:30, codecid:1
08-03 16:00:20.097    8543-8543/com.uaf.activity D/ANYCHAT﹕ InitAudioRecorder, profile: 1
08-03 16:00:20.107    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:20(118)        Invoke        SetInputAudioFormat(1, 16000, 16, flags:0)
08-03 16:00:20.107    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:20(119)        Audio Init, error:0, device:-1, 1, 16000, 16, capmode:0
08-03 16:00:20.107    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:20(119)        Audio codec init, handle:2, 11, 1, 16000, 16, 15850
08-03 16:00:20.107    8543-8543/com.uaf.activity D/ANYCHAT﹕ mMinRecordBufSize = 1280
08-03 16:00:20.207    8543-9340/com.uaf.activity D/ANYCHAT﹕ audio record....
08-03 16:00:20.217    8543-9340/com.uaf.activity I/ANYCHAT﹕ 16:00:20(222)        Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
08-03 16:00:20.297    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:20(303)        video codec init:codec:1, 15fps, 320x240, bitrate:90kbps, quality:3, preset:3, gop:30, handle:3
08-03 16:00:20.337    8543-8543/com.uaf.activity I/ActivityManager﹕ Timeline: Activity_idle id: android.os.BinderProxy@419f40a0 time:32241867
08-03 16:00:20.417    8543-9275/com.uaf.activity I/ANYCHAT﹕ 16:00:20(428)        userid(123) audio decode, codec:11, 1 channel, 16000Hz
08-03 16:00:20.697    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:20(702)        Invoke        LeaveRoom(roomid=-1)        Elapse:119 ms
08-03 16:00:20.707    8543-8543/com.uaf.activity I/ANYCHAT﹕ 16:00:20(714)        Invoke        LogoutServer(userid=115)        Elapse:12 ms
08-03 16:00:20.717    8543-8543/com.uaf.activity D/ANYCHAT﹕ ReleaseAudioRecorder
08-03 16:00:20.717    8543-9340/com.uaf.activity D/ANYCHAT﹕ audio record stop....
08-03 16:00:20.757    8543-8543/com.uaf.activity D/ANYCHAT﹕ ReleaseAudioPlayer
08-03 16:00:20.757    8543-9273/com.uaf.activity D/ANYCHAT﹕ audio play stop....
liweiqiang888 发表于 2015-8-3 16:08:58
admin 发表于 2015-7-31 20:42
10分钟!请将断开之后的两边的日志内容帖上来,我们帮您分析一下,谢谢!

问题:Android和客服端接通后,瞬间就断了,
日志:IE客户端日志:
OnAnyChatConnect(errorcode=0) 16:01:16
OnAnyChatLoginSystem(userid=123, errorcode=0) 16:01:16
OnAnyChatObjectUpdate(4,10001) 16:01:16
OnAnyChatObjectSyncDataFinish(4,10001) 16:01:16
OnAnyChatAgentStatusChanged(6,123,0) 16:01:16
OnAnyChatObjectUpdate(6,123) 16:01:16
OnAnyChatObjectSyncDataFinish(6,123) 16:01:16
OnAnyChatObjectUpdate(5,101) 16:01:16
OnAnyChatObjectSyncDataFinish(5,101) 16:01:16
OnAnyChatAgentStatusChanged(6,123,0) 16:01:16
OnAnyChatObjectUpdate(6,123) 16:01:16
OnAnyChatObjectUpdate(4,10001) 16:01:16
OnAnyChatEnterAreaResult(4,10001,0) 16:01:16
在线人数:0 16:01:16
在线人数:0 16:01:16
OnAnyChatAreaStatusChange(4,10001,0) 16:01:16
在线人数:0 16:01:19
OnAnyChatAreaStatusChange(4,10001,0) 16:01:19
OnAnyChatObjectUpdate(8,113) 16:01:21
OnAnyChatServiceStart(123,113,101) 16:01:21
OnAnyChatAgentStatusChanged(6,123,2) 16:01:21
在线人数:0 16:01:21
OnAnyChatAreaStatusChange(4,10001,0) 16:01:21
OnAnyChatEnterRoom(dwRoomId=1,errorcode=0) 16:01:21
function OnAnyChatUserAtRoom(dwUserId=113) 16:01:21
function OnAnyChatUserAtRoom(dwUserId=113) 16:01:22
OnAnyChatAgentStatusChanged(6,123,1) 16:01:22
在线人数:0 16:01:22
在线人数:0 16:01:23
OnAnyChatAreaStatusChange(4,10001,0) 16:01:23


Android日志:见楼下附件
liweiqiang888 发表于 2015-8-3 11:35:25
佰锐科技-邵光清 发表于 2015-8-3 10:19
您好,更新的是服务端的子版本,Windows SDK或者是Linux SDK。

OK ,已服务人数的功能已经正常,谢谢!
佰锐科技-邵光清 发表于 2015-8-3 10:19:06
liweiqiang888 发表于 2015-8-3 10:13
你好,官网上的最新的版本是4815的?,找不到您说的4826

您好,更新的是服务端的子版本,Windows SDK或者是Linux SDK。
liweiqiang888 发表于 2015-8-3 10:13:34
admin 发表于 2015-7-31 22:54
您好,该问题已经修正,请重新下载服务器端SDK(版本号r4826),需要更新AnyChat Server SDK的相关库文件 ...

你好,官网上的最新的版本是4815的?,找不到您说的4826

Archiver|手机版|AnyChat ( 粤ICP备13022410号-1 )  

GMT+8, 2024-11-24 00:45 , Processed in 0.118813 second(s), 24 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表