【问题标题】:How to check using Twilio IncomingCall is Disconnect in Android?如何在 Android 中使用 Twilio IncomingCall 检查是否断开连接?
【发布时间】:2016-06-25 04:57:58
【问题描述】:

如何使用 Twilio 检查 IncomingCall is Disconnected。

当来电断开时,我收到以下日志(例如未接来电类型)。但所有日志都是 Lib 的内置日志,所以我无法捕获或使用。

06-25 09:55:20.293 2037-2186/com.reach.xxxD/PJSIP: 09:55:20.293  dlg0xb9ce6504  ........Transaction tsx0xba71b874 state changed to Completed
06-25 09:55:20.294 2037-2186/com.reach.xxxD/Call(native): tw_call_get already exists
06-25 09:55:20.294 2037-2186/com.reach.xxxD/UserAgent(native): got on_call_state for call id 0
06-25 09:55:20.295 2037-2186/com.reach.xxxD/Call(native): tw_call_get already exists
06-25 09:55:20.295 2037-2186/com.reach.xxxD/UserAgent(native): ... forwarding to java
06-25 09:55:20.298 2037-2186/com.reach.xxxD/MediaManager: playing sound DISCONNECT as id 2
06-25 09:55:20.298 2037-2186/com.reach.xxxI/Connection: Connection disconnected successfully.
06-25 09:55:20.298 2037-2186/com.reach.xxxD/UserAgent(native): cinfo.state ... 487
06-25 09:55:20.298 2037-2186/com.reach.xxxI/PJSIP: 09:55:20.298  pjsua_media.c  ..........Call 0: deinitializing media..

提前致谢。

【问题讨论】:

    标签: android android-activity twilio twilio-click-to-call twilio-api


    【解决方案1】:

    Connection Interface Reference 允许您跟踪 Connection State 并与您希望显式跟踪 onDisconnected 方法的 ConnectionListener 交互。

    在日志中,这似乎按预期工作,所以没有看到您的代码,我不确定究竟是什么问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-02-09
      • 2010-10-05
      • 2014-10-05
      • 1970-01-01
      • 2015-08-27
      • 1970-01-01
      • 1970-01-01
      • 2017-10-30
      相关资源
      最近更新 更多