如何使用Twilio IncomingCall进行检查是否在Android中断开连接?

时间:2016-06-25 04:57:58

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

如何使用Twilio IncomingCall进行检查已断开连接。

当来电断开时,我收到了波纹状的日志(如未接来电类型)。但是所有日志都是内置的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..

提前致谢。

1 个答案:

答案 0 :(得分:0)

Connection Interface Reference可让您跟踪Connection State,并与您希望明确跟踪onDisconnected方法的ConnectionListener进行互动。

在日志中,似乎这样工作正常,所以没有看到你的代码,我不确定究竟是什么问题。