Comment 4 for bug 1260988

Revision history for this message
Tony Espy (awe) wrote : Re: declining a calls hangs up rather than going to voicemail. aka, no Ignore option for incoming calls

So after a bit of investigation, I discovered:

1. AOSP rejects a ringing call by sending a RIL_REQUEST_UDUB ( User Defined Busy ).

2. Currently telepathy-ofono calls the ofono Voicecall interface Hangup method, which results in ofono calling the rilmodem driver's hangup_all() method, which in turn sends a RIL_REQUEST_HANGUP for any existing calls.

ofono's documentation says that UDUB should only be sent for calls in WAITING state. This differs from AOSP which sends UDUB for calls that are ringing or waiting.

I still need to verify this behavior on a live device running CM.

If this is indeed the case, we'll need to modify the logic in ril_hangup_all() to check the status of each call, and if the status is incoming or waiting, send the UDUB request instead of a HANGUP request.