如何在安卓耆那教SIP中断开通话



我正在Android中使用Jain Sip创建拨号器,我通过互联网进行了搜索,但我没有找到任何通过按按钮编程来断开呼叫的方法。 我试过这个'

 TelephonyManager tm = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);    
 c = Class.forName(tm.getClass().getName());    
 m = c.getDeclaredMethod("getITelephony");    
 m.setAccessible(true);    
 telephonyService = (ITelephony) m.invoke(tm);    
 telephonyService.silenceRinger();   
 telephonyService.endCall();    `

您是否在 https://github.com/Mobicents/restcomm-android-sdk 检查过Android Restcomm Client?这是一个基于JAIN SIP的高级SDK,用于VoIP呼叫。

最新更新