i am creating dialer using jain sip in android , i have search through the internet but i didn't find any way to disconnect the call by pressing a button programmatic. i have tried this `
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(); `
Have you checked Android Restcomm Client at https://github.com/Mobicents/restcomm-android-sdk ? It's a high level JAIN SIP based SDK for Voip calls.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.