| | |
| | | @Override |
| | | public void callEnd() { |
| | | super.callEnd(); |
| | | context.sendBroadcast(new Intent(HDLLinphoneIntercomActivity.RECEIVE_FINISH_VIDEO_ACTIVITY)); |
| | | // context.sendBroadcast(new Intent(HDLLinphoneIntercomActivity.RECEIVE_FINISH_VIDEO_ACTIVITY)); |
| | | |
| | | } |
| | | }); |
| | |
| | | config.done(); |
| | | } |
| | | } |
| | | core.clearAllAuthInfo();//清除所有认证信息。 |
| | | |
| | | // core.clearProxyConfig();//从配置中删除所有代理。注意:目前不能直接删所有代理,因为服务器上还是标记已注册 |
| | | } |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | |
| | | public void clearProxyConfig(){ |
| | | Core core = HDLLinphoneService.getCore(); |
| | | if (core != null) { |
| | | core.setDefaultProxyConfig(null); |
| | | core.clearAllAuthInfo();//清除所有认证信息。 |
| | | core.clearProxyConfig();//从配置中删除所有代理。 |
| | | } |
| | |
| | | * 获取当前通话状态 |
| | | */ |
| | | public Call.State getCallState() { |
| | | return HDLLinphoneService.getInstance().getCurrentCallState(); |
| | | if(HDLLinphoneService.getInstance() == null) { |
| | | return null; |
| | | }else { |
| | | return HDLLinphoneService.getInstance().getCurrentCallState(); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 获取当前通话状态是否为来电中 |
| | | */ |
| | | public boolean isIncomingReceivedCallState() { |
| | | return HDLLinphoneService.getInstance().getCurrentCallState() == Call.State.IncomingReceived; |
| | | if(HDLLinphoneService.getInstance() == null || HDLLinphoneService.getInstance().getCurrentCallState() == null){ |
| | | return false; |
| | | }else{ |
| | | return (HDLLinphoneService.getInstance().getCurrentCallState() == Call.State.IncomingReceived); |
| | | } |
| | | } |
| | | |
| | | /** |