简体   繁体   English

Android SipManager关闭给出错误“无数据连接”

[英]Android SipManager close gives error “no data connection”

Using the built-in Android SIP stack, I have a soft phone that successfully registers and makes calls. 使用内置的Android SIP堆栈,我有一部可以成功注册并拨打电话的软件电话。 But when exiting the app I call the SipManager's close() method I see using "adb logcat" that it fails to unregister because it doesn't have a data connection. 但是,退出应用程序时,我调用了SipManager的close()方法,我发现使用“ adb logcat”失败了,因为它没有数据连接,因此无法注销。 The phone I'm testing with is on WIFI and has uninterrupted access the whole time. 我正在测试的手机在WIFI上,并且一直保持不间断的访问。 Any ideas? 有任何想法吗? Thank you in advance. 先感谢您。

Code: 码:

manager.close( me.getUriString() );

SipRegistrationListener calls method onRegistrationFailed() with errorCode -10 (DATA_CONNECTION_LOST) and errorMessage "no data connection". SipRegistrationListener调用方法onRegistrationFailed(),错误代码为-10(DATA_CONNECTION_LOST),错误消息为“无数据连接”。 From "adb logcat": 来自“ adb logcat”:

D/CallManager( 3197): unregisterPhone(SIP:2345678@12.34.56.78 Handler (com.android.internal.telephony.sip.SipPhone) {4355db80})
D/MyPhone(10130): MyService.MyMethod() Got "onRegistrationFailed" with errorCode "-10" and errorMessage "no data connection".

Android WiFi error is going viral. Android WiFi错误越来越流行。 Everyday number of Android users complain about this error. 每天都有Android用户抱怨此错误。 They try their best to contact Google for solutions but with no success. 他们尽力与Google联系以寻求解决方案,但没有成功。

  • Reload WiFi Driver 重新加载WiFi驱动程序
  • Use Different Options to Reload WiFi Driver 使用其他选项重新加载WiFi驱动程序
  • Modify Network Configurations 修改网络配置
  • Clean Device Cache 清理设备缓存
  • Try Wi-Fi Fixer App to Resolve the Problem 尝试使用Wi-Fi Fixer App解决问题

Source:- Google http://www.winphonedroid.com/fix-android-wifi-error/ 资料来源:-Google http://www.winphonedroid.com/fix-android-wifi-error/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM