How to disconnect a outgoing call programatically
<p>I've used the following code to disconnect a call programatically but It's not working.</p>

<pre><code>private void callDisconnect(){ 
    try{ 
        TelephonyManager manager = (TelephonyManager)this.getSystemService(this.TELEPHONY_SERVICE); 
        Class c = Class.forName(manager.getClass().getName()); 
        Method m = c.getDeclaredMethod("getITelephony"); 
        m.setAccessible(true); 
        ITelephony telephony = (ITelephony)m.invoke(manager); 
        telephony.endcall(); 
    } catch(Exception e){ 
        Log.d("",e.getMessage()); 
    } 
}
</code></pre>

<p>Can anybody help me with this?? Do I need to change the code or something...??</p>
