| | |
| | | mTextView4.setOnClickListener(new View.OnClickListener() { |
| | | @Override |
| | | public void onClick(View v) { |
| | | clearProxyConfig(); |
| | | HDLLinphoneKit.getInstance().setAccountAndLogin("5555", "85521566", "test-gz.hdlcontrol.com:5060"); |
| | | } |
| | | }); |
| | |
| | | @Override |
| | | public void onClick(View v) { |
| | | |
| | | logoutLog(); |
| | | return; |
| | | //// HDLLinphoneKit.getInstance().callTo("61723164995779",true); |
| | | //// HDLcallTo("61723164995779",true); |
| | | // HDLLinphoneKit.getInstance().callTo("1427186301744910338",true); |
| | | // startActivity(HDLLinphoneMonitorActivity.class); |
| | | // logoutLog(); |
| | | // return; |
| | | // HDLLinphoneKit.getInstance().callTo("61723164995779",true); |
| | | // HDLcallTo("61723164995779",true); |
| | | HDLLinphoneKit.getInstance().callTo("1427186301744910338",true); |
| | | startActivity(HDLLinphoneMonitorActivity.class); |
| | | |
| | | |
| | | } |
| | |
| | | mTextView3.setOnClickListener(new View.OnClickListener() { |
| | | @Override |
| | | public void onClick(View v) { |
| | | HDLLinphoneKit.getInstance().logout(); |
| | | logout(); |
| | | } |
| | | }); |
| | | |
| | |
| | | config.done(); |
| | | } |
| | | } |
| | | core.clearAllAuthInfo();//清除所有认证信息。 |
| | | // core.clearAllAuthInfo();//清除所有认证信息。 |
| | | // core.clearProxyConfig();//从配置中删除所有代理。 |
| | | } |
| | | } catch (Exception e) { |
| | |
| | | } |
| | | } |
| | | |
| | | public void clearProxyConfig() { |
| | | Core core = HDLLinphoneService.getCore(); |
| | | if (core != null) { |
| | | core.setDefaultProxyConfig(null); |
| | | core.clearAllAuthInfo(); |
| | | core.clearProxyConfig(); |
| | | // core.refreshRegisters();//强制在下一次迭代时启动注册刷新 |
| | | // core.ensureRegistered(); |
| | | } |
| | | |
| | | } |
| | | |
| | | public void logoutLog() { |
| | | try { |
| | | Core core = HDLLinphoneService.getCore(); |