Telephony Call flow

1,097 views
Skip to first unread message

Peace7

unread,
Nov 23, 2009, 1:39:38 PM11/23/09
to android-platform
Hi,

I am trying to understand the Android Telephony System Call flow.
I have taken up a case of MO scenario and am trying to step-through
it.

I am able to trace the call flow from PhoneApp till CallTracker.dial
(String dialString, int clirMode) but losing the flow thereafter.

I was expecting the CallTracker to invoke RIL.dial() functionality
with the below statement

cm.dial(pendingMO.address, clirMode, obtainCompleteMessage());

as GSMPhone was constructed with RIL(context) as its "cm" parameter in
PhoneApp.onCreate() but it's not.

Here's the call flow that I have concluded so far:

PhoneApp.onCreate()....InCallScreen.placeCall() ->
PhoneUtils.placeCall ->phone.dial() -> GSMPhone.dial()->mCT.dial----
>CallTracker.dial()->cm.dial...?

Could anyone please point me out the further flow or any missing link?

Thanks and Regards,

Peace

Anil Sasidharan

unread,
Nov 24, 2009, 7:32:22 AM11/24/09
to android-...@googlegroups.com
Hi,

       The CommandsInterface for GSMPhone object instantiated by the PhoneFactory is in "RIL" context.. please see the following code snippet in "PhoneFactory.java"

private static void
    useNewRIL(Context context)
    {
        ModelInterpreter mi = null;
        GSMPhone phone;

        try {
            if (false) {
                mi = new ModelInterpreter(new InetSocketAddress("127.0.0.1", 6502));
            }

            phone = new GSMPhone(context, new RIL(context), sPhoneNotifier);

            registerPhone (phone);
        } catch (IOException ex) {
            Log.e(LOG_TAG, "Error creating ModelInterpreter", ex);
        }
    }

This would be case for devices where the system property "ro.radio.noril" is not set.

Hope this would help you to trace the call-stack.

Warm Regards,
Anil

--

You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=.



Peace7

unread,
Nov 24, 2009, 11:58:35 AM11/24/09
to android-platform
Yes, I expect the call flow in this way.
So, I expect the cm.dial(pendingMO.address, clirMode,
obtainCompleteMessage()); statement in CallTracker to invoke the
RIL.dial() function but it is not. I have put log statement in RIL.dial
() function but they are not appearing in logcat debug messages.
Am I missing something?

Many thanks for the response.

Regards,
Peace


On Nov 24, 5:32 pm, Anil Sasidharan <an...@mistralsolutions.com>
wrote:
> > android-platfo...@googlegroups.com<android-platform%2Bunsubscrib­e...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/android-platform?hl=.- Hide quoted text -
>
> - Show quoted text -

Anil Sasidharan

unread,
Nov 25, 2009, 12:20:34 AM11/25/09
to android-...@googlegroups.com
Hi Peace,

                  Is this being experimented on an actual android device like G1 Phone or the android emulator itself. If it is on emulator, the behavior being observed at your end is expected. What version of Android is used for this test (Cupcake, Donut or Eclair???)

Warm Regards,
Anil

To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.



Reply all
Reply to author
Forward
0 new messages