设为首页收藏本站

AnyChat技术支持论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 3794|回复: 5
打印 上一主题 下一主题

ios AnyChatCallCenter 登录问题

[复制链接]

1

主题

4

帖子

11

积分

新手上路

Rank: 1

积分
11
跳转到指定楼层
楼主
发表于 2016-5-17 11:06:38 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
1、AnyChatCallCenter功能模块的时候,我们需要用到在vc中多个账号切换登录的业务场景,第一个账号能正确登录,但是在调用logout方法后,再去登入第二个用户的时候就没有反应了,没有回调了,log日志是这样的
---------------------------AnyChat Platform Core SDK Client Log---------------------------
2016-05-17 11:02:52.492 CarloanOperaApp[73369:2172549] Load libanychatcore.so success!(V6.0 Build Time:Mar 31 2016 15:09:48)
2016-05-17 11:02:52.493 CarloanOperaApp[73369:2172549] Load libmediautil.so success!(V6.0 Build Time:Mar 31 2016 15:10:17)
2016-05-17 11:02:52.493 CarloanOperaApp[73369:2172549] Load libmediashow.so success!(V6.0 Build Time:Mar 31 2016 15:10:15)
2016-05-17 11:02:52.494 CarloanOperaApp[73369:2172549] Load libmediacore.so success!(V6.0 Build Time:Mar 31 2016 15:10:12)
2016-05-17 11:02:52.501 CarloanOperaApp[73369:2172549] Invoke        SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
2016-05-17 11:02:52.501 CarloanOperaApp[73369:2172549] Invoke        SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
2016-05-17 11:02:52.502 CarloanOperaApp[73369:2172549] Apply video parameter:640x480, bitrate:0kbps, quality:3, gop:0, fps:12, preset:2, codec:0
2016-05-17 11:02:58.012 CarloanOperaApp[73369:2172549] Invoke        SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
2016-05-17 11:02:58.013 CarloanOperaApp[73369:2172549] Invoke        SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
2016-05-17 11:02:58.014 CarloanOperaApp[73369:2172549] Apply video parameter:640x480, bitrate:0kbps, quality:3, gop:0, fps:12, preset:2, codec:0
2016-05-17 11:02:59.015 CarloanOperaApp[73369:2172549] Invoke        Connect(202.91.242.245,8906)=0
2016-05-17 11:02:59.017 CarloanOperaApp[73369:2172549] Invoke        Login(username:1_210_65)=0
2016-05-17 11:02:59.059 CarloanOperaApp[73369:2172678] Create anychatdnsserver connect:202.91.242.245(8906)
2016-05-17 11:02:59.096 CarloanOperaApp[73369:2172678] On pre-connection result, errorcode:0, anychatcoreserver, 202.91.242.245(8906, tcp:1)
2016-05-17 11:02:59.164 CarloanOperaApp[73369:2172678] CheckClientSocketLink         Connect(ip=202.91.242.245,port=8906)
2016-05-17 11:02:59.200 CarloanOperaApp[73369:2172678] Server version: V5.3(Build Time:2015-08-10 12:21:30, Server OS:Windows)
2016-05-17 11:02:59.212 CarloanOperaApp[73369:2172678] Message        OnConnect(bSuccess:1, errorcode=0)
2016-05-17 11:02:59.223 CarloanOperaApp[73369:2172549] 成功
2016-05-17 11:02:59.434 CarloanOperaApp[73369:2172678] Message        OnLoginSystem(userid=-61,errorcode=0,username= 1_21018_653), msg deliver worked(0)
2016-05-17 11:02:59.436 CarloanOperaApp[73369:2172678] Load libmediautil.so success!(V6.0 Build Time:Mar 31 2016 15:10:17)
2016-05-17 11:02:59.437 CarloanOperaApp[73369:2172678] Load libmediashow.so success!(V6.0 Build Time:Mar 31 2016 15:10:15)
2016-05-17 11:02:59.437 CarloanOperaApp[73369:2172678] Load libmediacore.so success!(V6.0 Build Time:Mar 31 2016 15:10:12)
2016-05-17 11:02:59.438 CarloanOperaApp[73369:2172678] Server running time: 1 days, 2 hours, 2 minutes, license mode:0
2016-05-17 11:02:59.449 CarloanOperaApp[73369:2172678] Connection to streaming media server successfully!(udp delay:5ms)
2016-05-17 11:03:08.054 CarloanOperaApp[73369:2172549] Invoke        SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
2016-05-17 11:03:08.056 CarloanOperaApp[73369:2172549] Invoke        SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
2016-05-17 11:03:08.056 CarloanOperaApp[73369:2172549] Apply video parameter:640x480, bitrate:0kbps, quality:3, gop:0, fps:12, preset:2, codec:0
2016-05-17 11:03:09.056 CarloanOperaApp[73369:2172549] Invoke        Connect(202.91.242.245,8906)=0
2016-05-17 11:03:09.156 CarloanOperaApp[73369:2172549] Invoke        LogoutServer(userid=-61)        Elapse:97 ms
2016-05-17 11:03:09.156 CarloanOperaApp[73369:2172549] Invoke        Login(username:1_21018_653)=0

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

沙发
发表于 2016-5-17 11:23:45 | 只看该作者
您好,日志显示接口调用顺序有误:
2016-05-17 11:03:09.056 CarloanOperaApp[73369:2172549] Invoke        Connect(202.91.242.245,8906)=0
2016-05-17 11:03:09.156 CarloanOperaApp[73369:2172549] Invoke        LogoutServer(userid=-61)        Elapse:97 ms
2016-05-17 11:03:09.156 CarloanOperaApp[73369:2172549] Invoke        Login(username:1_21018_653)=0
需先logout,再Connect和Login。
回复 支持 反对

使用道具 举报

1

主题

4

帖子

11

积分

新手上路

Rank: 1

积分
11
板凳
 楼主| 发表于 2016-5-17 12:09:24 | 只看该作者
佰锐科技-邵光清 发表于 2016-5-17 11:23
您好,日志显示接口调用顺序有误:
2016-05-17 11:03:09.056 CarloanOperaApp[73369:2172549] Invoke      ...

---------------------------AnyChat Platform Core SDK Client Log---------------------------
2016-05-17 12:06:48.435 CarloanOperaApp[5278:2778812] Load libanychatcore.so success!(V6.0 Build Time:Mar 31 2016 15:10:07)
2016-05-17 12:06:48.446 CarloanOperaApp[5278:2778812] Load libmediautil.so success!(V6.0 Build Time:Mar 31 2016 15:10:20)
2016-05-17 12:06:48.449 CarloanOperaApp[5278:2778812] Load libmediashow.so success!(V6.0 Build Time:Mar 31 2016 15:10:15)
2016-05-17 12:06:48.451 CarloanOperaApp[5278:2778812] Load libmediacore.so success!(V6.0 Build Time:Mar 31 2016 15:10:14)
2016-05-17 12:06:48.534 CarloanOperaApp[5278:2778812] Invoke        SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
2016-05-17 12:06:48.542 CarloanOperaApp[5278:2778812] Invoke        SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
2016-05-17 12:06:48.544 CarloanOperaApp[5278:2778812] Apply video parameter:640x480, bitrate:0kbps, quality:3, gop:0, fps:12, preset:2, codec:0
2016-05-17 12:06:54.715 CarloanOperaApp[5278:2778812] Invoke        SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
2016-05-17 12:06:54.717 CarloanOperaApp[5278:2778812] Invoke        SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
2016-05-17 12:06:54.719 CarloanOperaApp[5278:2778812] Apply video parameter:640x480, bitrate:0kbps, quality:3, gop:0, fps:12, preset:2, codec:0
2016-05-17 12:06:55.710 CarloanOperaApp[5278:2778812] Invoke        Connect(202.91.242.242,8906)=0
2016-05-17 12:06:55.726 CarloanOperaApp[5278:2778812] Invoke        Login(username:1_2108_68649)=0
2016-05-17 12:06:55.740 CarloanOperaApp[5278:2779427] Create anychatdnsserver connect:202.91.248.244(8906)
2016-05-17 12:06:55.944 CarloanOperaApp[5278:2779427] On pre-connection result, errorcode:0, anychatcoreserver, 202.91.248.244(8906, tcp:1)
2016-05-17 12:06:55.957 CarloanOperaApp[5278:2779427] CheckClientSocketLink         Connect(202.91.242.242,8906)
2016-05-17 12:06:56.168 CarloanOperaApp[5278:2779427] Server version: V5.3(Build Time:2015-08-10 12:21:30, Server OS:Windows)
2016-05-17 12:06:56.316 CarloanOperaApp[5278:2779427] Message        OnConnect(bSuccess:1, errorcode=0)
2016-05-17 12:06:56.319 CarloanOperaApp[5278:2778812] 成功
2016-05-17 12:06:56.814 CarloanOperaApp[5278:2779427] Message        OnLoginSystem(userid=422,errorcode=0,username=1_210168_68649), msg deliver worked(0)
2016-05-17 12:06:56.819 CarloanOperaApp[5278:2779427] Load libmediautil.so success!(V6.0 Build Time:Mar 31 2016 15:10:20)
2016-05-17 12:06:56.823 CarloanOperaApp[5278:2779427] Load libmediashow.so success!(V6.0 Build Time:Mar 31 2016 15:10:15)
2016-05-17 12:06:56.825 CarloanOperaApp[5278:2779427] Load libmediacore.so success!(V6.0 Build Time:Mar 31 2016 15:10:14)
2016-05-17 12:06:56.827 CarloanOperaApp[5278:2778812] ------登入成功
2016-05-17 12:06:56.834 CarloanOperaApp[5278:2779427] Server running time: 1 days, 3 hours, 6 minutes, license mode:0
2016-05-17 12:06:56.881 CarloanOperaApp[5278:2779427] Connection to streaming media server successfully!(udp delay:17ms)
2016-05-17 12:06:58.920 CarloanOperaApp[5278:2778812] Invoke        LogoutServer(userid=422)        Elapse:92 ms
2016-05-17 12:06:58.923 CarloanOperaApp[5278:2778812] Invoke        Connect(202.91.242.242,8906)=0
2016-05-17 12:06:58.925 CarloanOperaApp[5278:2778812] Invoke        Login(username:1_210168_68649)=0
2016-05-17 12:06:59.002 CarloanOperaApp[5278:2779427] Create anychatdnsserver connect:202.91.248.244(8906)
2016-05-17 12:06:59.065 CarloanOperaApp[5278:2779427] On pre-connection result, errorcode:0, anychatcoreserver, 202.91.248.244(8906, tcp:1)
2016-05-17 12:06:59.109 CarloanOperaApp[5278:2779427] CheckClientSocketLink         Connect(ip=202.91.248.244,port=8906)
2016-05-17 12:06:59.157 CarloanOperaApp[5278:2779427] Server version: V5.3(Build Time:2015-08-10 12:21:30, Server OS:Windows)
2016-05-17 12:06:59.172 CarloanOperaApp[5278:2779427] Message        OnConnect(bSuccess:1, errorcode=0)
2016-05-17 12:06:59.516 CarloanOperaApp[5278:2779427] Message        OnLoginSystem(userid=424,errorcode=0,username=1_210168_68649), msg deliver worked(0)
2016-05-17 12:06:59.518 CarloanOperaApp[5278:2779427] Load libmediautil.so success!(V6.0 Build Time:Mar 31 2016 15:10:20)
2016-05-17 12:06:59.520 CarloanOperaApp[5278:2779427] Load libmediashow.so success!(V6.0 Build Time:Mar 31 2016 15:10:15)
2016-05-17 12:06:59.522 CarloanOperaApp[5278:2779427] Load libmediacore.so success!(V6.0 Build Time:Mar 31 2016 15:10:14)
2016-05-17 12:06:59.526 CarloanOperaApp[5278:2779427] Server running time: 1 days, 3 hours, 6 minutes, license mode:0
2016-05-17 12:06:59.550 CarloanOperaApp[5278:2779427] Connection to streaming media server successfully!(udp delay:10ms)
2016-05-17 12:07:02.249 CarloanOperaApp[5278:2778812] Invoke        SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
2016-05-17 12:07:02.253 CarloanOperaApp[5278:2778812] Invoke        SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
2016-05-17 12:07:02.257 CarloanOperaApp[5278:2778812] Apply video parameter:640x480, bitrate:0kbps, quality:3, gop:0, fps:12, preset:2, codec:0
2016-05-17 12:07:03.246 CarloanOperaApp[5278:2778812] Invoke        Connect(202.91.242.242,8906)=0
回复 支持 反对

使用道具 举报

1

主题

4

帖子

11

积分

新手上路

Rank: 1

积分
11
地板
 楼主| 发表于 2016-5-17 12:11:01 | 只看该作者
佰锐科技-邵光清 发表于 2016-5-17 11:23
您好,日志显示接口调用顺序有误:
2016-05-17 11:03:09.056 CarloanOperaApp[73369:2172549] Invoke      ...

还是不行,和那个通知[[NSNotificationCenter defaultCenter] addObserver:self selectorselector(AnyChatNotifyHandler name"ANYCHATNOTIFY" object:nil];有关,正常ios是willapplear注册,willdisappaar  remove 但是这样一来就第二次登入没回调
回复 支持 反对

使用道具 举报

5#
发表于 2016-5-17 14:07:06 | 只看该作者
vincent1209 发表于 2016-5-17 12:09
---------------------------AnyChat Platform Core SDK Client Log---------------------------
2016-0 ...

您好,从这个日志中看到,第一次是以username:1_2108_68649用户名登录;logout之后,第二次是以username:1_210168_68649用户名登录,登录成功之后,再次调用Connect(202.91.242.242,8906),此时已经登录成功了,无需再调用连接接口;
每一次登录成功之后是否可以看到其他在线用户了?是否可以进行呼叫、或者被呼叫了呢?
回复 支持 反对

使用道具 举报

1

主题

4

帖子

11

积分

新手上路

Rank: 1

积分
11
6#
 楼主| 发表于 2016-5-17 14:14:57 | 只看该作者
佰锐科技-邵光清 发表于 2016-5-17 14:07
您好,从这个日志中看到,第一次是以username:1_2108_68649用户名登录;logout之后,第二次是以username: ...

谢谢已经好了,还是我自己有些细节没处理好,不过咱们的demo或者文档还有对外的接口我觉得可以更人性化点,感觉现在还是有点乱,个人建议,谢谢了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2024-11-22 22:43 , Processed in 0.184707 second(s), 21 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

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