0

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();    `
user0946076422
  • 85
  • 1
  • 12

1 Answers1

2

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.

atsakiridis
  • 1,002
  • 5
  • 19