Read-only archive of the All About Symbian forum (2001–2013) · About this archive

API to subscribe to Incomming Call Events

6 replies · 0 views · Started 13 July 2006

From Symbian Signed Test Criteria:

------------------------------------------------------------------------------------------------------------------------------------

Test ID

PHN-01

Test Title

Service Interruption

Test Coverage

Sample

Conformance

Required

Full Description

When there is an interruption the application pauses and saves its state.

The interruptions should be handled appropriately with respect to the

context of the application and the interruption priority.

------------------------------------------------------------------------------------------------------------------------------------

Which API do you use in S60 V2 to get notified of all these events?

Receiving an incoming voice call

Receiving an incoming SMS

Receiving an incoming MMS

Using the application whilst a VoIP call is

already in progress, and creating a new VoIP

call whilst the application is running (if

An alarm notification event

Connecting external power charger

Switching of UI Modes (e.g. Flip,

horizontal/vertical)

Thank You very much!

Alfredo Rueda wrote:
> From Symbian Signed Test Criteria:
>
> ------------------------------------------------------------------------------------------------------------------------------------
>
> Test ID
>
> PHN-01
>
> Test Title
>
> Service Interruption
>
> Test Coverage
>
> Sample
>
> Conformance
>
> Required
>
> Full Description
>
> When there is an interruption the application pauses and saves its state.
>
> The interruptions should be handled appropriately with respect to the
>
> context of the application and the interruption priority.
>
> ------------------------------------------------------------------------------------------------------------------------------------
>
> Which API do you use in S60 V2 to get notified of all these events?
>
> Receiving an incoming voice call
>
> Receiving an incoming SMS
>
> Receiving an incoming MMS
>
> Using the application whilst a VoIP call is
>
> already in progress, and creating a new VoIP
>
> call whilst the application is running (if
>
> An alarm notification event
>
> Connecting external power charger
>
> Switching of UI Modes (e.g. Flip,
>
> horizontal/vertical)
>
>
>
> Thank You very much!
>
>
>
>
>
>

It may be easier to not listen to all these events and just pause your
app/state when your app goes to background.

AMK

AMK wrote:
> Alfredo Rueda wrote:[color=green]
>> From Symbian Signed Test Criteria:
>>
>> ------------------------------------------------------------------------------------------------------------------------------------
>>
>>
>> Test ID
>>
>> PHN-01
>>
>> Test Title
>>
>> Service Interruption
>>
>> Test Coverage
>>
>> Sample
>>
>> Conformance
>>
>> Required
>>
>> Full Description
>>
>> When there is an interruption the application pauses and saves its state.
>>
>> The interruptions should be handled appropriately with respect to the
>>
>> context of the application and the interruption priority.
>>
>> ------------------------------------------------------------------------------------------------------------------------------------
>>
>>
>> Which API do you use in S60 V2 to get notified of all these events?
>>
>> Receiving an incoming voice call
>>
>> Receiving an incoming SMS
>>
>> Receiving an incoming MMS
>>
>> Using the application whilst a VoIP call is
>>
>> already in progress, and creating a new VoIP
>>
>> call whilst the application is running (if
>>
>> An alarm notification event
>>
>> Connecting external power charger
>>
>> Switching of UI Modes (e.g. Flip,
>>
>> horizontal/vertical)
>>
>>
>>
>> Thank You very much!
>>
>>
>>
>>
>>
>>
[/color]

AMK:
>
> It may be easier to not listen to all these events and just pause your
> app/state when your app goes to background.
>
> AMK

Hello!

My "Application" is a Symbian Server (that always works in background)

The Symbian Server offers Voice User Interaction to Symbian Applications
(just like Window Server offers Graphical User Interaction to Symbian
Applications).

This Symbian Server uses different resources:
1. Network Device (Voice Recognition is done in a remote server)
2. Audio Device (Record user voice requests and Playback responses)
etc.

Nokia 6600 don't allow Voice Call and IP Connection at the same time, so I
must free the APN when Incoming Voice Call arrives. I observed that Nokia
Web Browser (in Nokia 6600):
1. Detects Incoming Voice Call
2 Closes APN
3. Re-connect APN when voice call finishes

How can I achive the same behaviour?

Thank You very much!

"AMK" <[email protected]> escribi� en el mensaje
news:[email protected]...
> Alfredo Rueda wrote:[color=green]
>> From Symbian Signed Test Criteria:
>>
>> ------------------------------------------------------------------------------------------------------------------------------------
>>
>> Test ID
>>
>> PHN-01
>>
>> Test Title
>>
>> Service Interruption
>>
>> Test Coverage
>>
>> Sample
>>
>> Conformance
>>
>> Required
>>
>> Full Description
>>
>> When there is an interruption the application pauses and saves its state.
>>
>> The interruptions should be handled appropriately with respect to the
>>
>> context of the application and the interruption priority.
>>
>> ------------------------------------------------------------------------------------------------------------------------------------
>>
>> Which API do you use in S60 V2 to get notified of all these events?
>>
>> Receiving an incoming voice call
>>
>> Receiving an incoming SMS
>>
>> Receiving an incoming MMS
>>
>> Using the application whilst a VoIP call is
>>
>> already in progress, and creating a new VoIP
>>
>> call whilst the application is running (if
>>
>> An alarm notification event
>>
>> Connecting external power charger
>>
>> Switching of UI Modes (e.g. Flip,
>>
>> horizontal/vertical)
>>
>>
>>
>> Thank You very much!
>>
>>
>>
>>
>>
>>

>
> It may be easier to not listen to all these events and just pause your
> app/state when your app goes to background.
>
> AMK[/color]

Alfredo Rueda wrote:
> Hello!
>
> My "Application" is a Symbian Server (that always works in background)
>
> The Symbian Server offers Voice User Interaction to Symbian Applications
> (just like Window Server offers Graphical User Interaction to Symbian
> Applications).
>
> This Symbian Server uses different resources:
> 1. Network Device (Voice Recognition is done in a remote server)
> 2. Audio Device (Record user voice requests and Playback responses)
> etc.
>
> Nokia 6600 don't allow Voice Call and IP Connection at the same time, so I
> must free the APN when Incoming Voice Call arrives. I observed that Nokia
> Web Browser (in Nokia 6600):
> 1. Detects Incoming Voice Call
> 2 Closes APN
> 3. Re-connect APN when voice call finishes

You do not need to do this yourself, the system shuts down or pauses the
connection when a call or sms comes in and resumes once done. You need
to make sure you do not time out.

I have noticed at time that when there is an active transfer (downlink
or may be uplink) the caller gets a busy tone. If this is the case then
I guess there is nothing you can do detect an incoming call or sms. You
do not need to bother about this use case.

>
> How can I achive the same behaviour?
>
> Thank You very much!
>
>
> "AMK" <[email protected]> escribi� en el mensaje
> news:[email protected]...[color=green]
>> Alfredo Rueda wrote:[color=darkred]
>>> From Symbian Signed Test Criteria:
>>>
>>> ------------------------------------------------------------------------------------------------------------------------------------
>>>
>>> Test ID
>>>
>>> PHN-01
>>>
>>> Test Title
>>>
>>> Service Interruption
>>>
>>> Test Coverage
>>>
>>> Sample
>>>
>>> Conformance
>>>
>>> Required
>>>
>>> Full Description
>>>
>>> When there is an interruption the application pauses and saves its state.
>>>
>>> The interruptions should be handled appropriately with respect to the
>>>
>>> context of the application and the interruption priority.
>>>
>>> ------------------------------------------------------------------------------------------------------------------------------------
>>>
>>> Which API do you use in S60 V2 to get notified of all these events?
>>>
>>> Receiving an incoming voice call
>>>
>>> Receiving an incoming SMS
>>>
>>> Receiving an incoming MMS
>>>
>>> Using the application whilst a VoIP call is
>>>
>>> already in progress, and creating a new VoIP
>>>
>>> call whilst the application is running (if
>>>
>>> An alarm notification event
>>>
>>> Connecting external power charger
>>>
>>> Switching of UI Modes (e.g. Flip,
>>>
>>> horizontal/vertical)
>>>
>>>
>>>
>>> Thank You very much!
>>>
>>>
>>>
>>>
>>>
>>>

>> It may be easier to not listen to all these events and just pause your
>> app/state when your app goes to background.
>>
>> AMK[/color]
>
>[/color]

AMK

Hello AMK!

About:
"I have noticed at time that when there is an active transfer (downlink
or may be uplink) the caller gets a busy tone. If this is the case then
I guess there is nothing you can do detect an incoming call or sms. You
do not need to bother about this use case."

I have expirienced the same behaviour when testing with Nokia Web Browser.
When you download a large file, incomming calls are ignored. But
when there is no active transfer, incomming calls are attended correctly
(data connection is suspended temporary). Using TNifProgressBuf, you will
be able to detect the new state.

The problem is that my Server uses two protocols:
1. Signaling Protocol
2. RealTime Media Transmission Protocol

Server sends / receives hearbeats packets each 5 seconds. Incomming Calls
are always ignored! (gprs connection always remains active)

"Top SymbianSigned Failing Tests" document in "SymbianSigned.com" states:
"5. The application doesn't pause when necessary, for example it
continues when there's an incoming call without notifying the user."

I will not pass SymbianSigned! Please help me!

Are you sure there is no API to Detect Incomming Calls?

In fact, I'm not interested in detecting if GPRS Connection has been
suspended. I'm interested in detecting Incomming Call.

In phones that support voice call and 3G connection at the same time, it's
also necessary to detect incomming voice call. My Server must do a list of
tasks to pass SymbianSign:

1. Stop Streamming Audio.

2. Notify Symbian Applications that the Server will be unavailable during
the voice cal.

3. etc.

Thank You very much!

"AMK" <[email protected]> escribi� en el mensaje
news:[email protected]...
> Alfredo Rueda wrote:[color=green]
>> Hello!
>>
>> My "Application" is a Symbian Server (that always works in background)
>>
>> The Symbian Server offers Voice User Interaction to Symbian Applications
>> (just like Window Server offers Graphical User Interaction to Symbian
>> Applications).
>>
>> This Symbian Server uses different resources:
>> 1. Network Device (Voice Recognition is done in a remote server)
>> 2. Audio Device (Record user voice requests and Playback responses)
>> etc.
>>
>> Nokia 6600 don't allow Voice Call and IP Connection at the same time, so
>> I must free the APN when Incoming Voice Call arrives. I observed that
>> Nokia Web Browser (in Nokia 6600):
>> 1. Detects Incoming Voice Call
>> 2 Closes APN
>> 3. Re-connect APN when voice call finishes

>
> You do not need to do this yourself, the system shuts down or pauses the
> connection when a call or sms comes in and resumes once done. You need to
> make sure you do not time out.
>
> I have noticed at time that when there is an active transfer (downlink or
> may be uplink) the caller gets a busy tone. If this is the case then I
> guess there is nothing you can do detect an incoming call or sms. You do
> not need to bother about this use case.
>
>>
>> How can I achive the same behaviour?
>>
>> Thank You very much!
>>
>>
>> "AMK" <[email protected]> escribi� en el mensaje
>> news:[email protected]...[color=darkred]
>>> Alfredo Rueda wrote:
>>>> From Symbian Signed Test Criteria:
>>>>
>>>> ------------------------------------------------------------------------------------------------------------------------------------
>>>>
>>>> Test ID
>>>>
>>>> PHN-01
>>>>
>>>> Test Title
>>>>
>>>> Service Interruption
>>>>
>>>> Test Coverage
>>>>
>>>> Sample
>>>>
>>>> Conformance
>>>>
>>>> Required
>>>>
>>>> Full Description
>>>>
>>>> When there is an interruption the application pauses and saves its
>>>> state.
>>>>
>>>> The interruptions should be handled appropriately with respect to the
>>>>
>>>> context of the application and the interruption priority.
>>>>
>>>> ------------------------------------------------------------------------------------------------------------------------------------
>>>>
>>>> Which API do you use in S60 V2 to get notified of all these events?
>>>>
>>>> Receiving an incoming voice call
>>>>
>>>> Receiving an incoming SMS
>>>>
>>>> Receiving an incoming MMS
>>>>
>>>> Using the application whilst a VoIP call is
>>>>
>>>> already in progress, and creating a new VoIP
>>>>
>>>> call whilst the application is running (if
>>>>
>>>> An alarm notification event
>>>>
>>>> Connecting external power charger
>>>>
>>>> Switching of UI Modes (e.g. Flip,
>>>>
>>>> horizontal/vertical)
>>>>
>>>>
>>>>
>>>> Thank You very much!
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>> It may be easier to not listen to all these events and just pause your
>>> app/state when your app goes to background.
>>>
>>> AMK

>>
>>[/color]
>
> AMK[/color]

Alfredo Rueda wrote:
> Hello AMK!
>
> About:
> "I have noticed at time that when there is an active transfer (downlink
> or may be uplink) the caller gets a busy tone. If this is the case then
> I guess there is nothing you can do detect an incoming call or sms. You
> do not need to bother about this use case."
>
> I have expirienced the same behaviour when testing with Nokia Web Browser.
> When you download a large file, incomming calls are ignored. But
> when there is no active transfer, incomming calls are attended correctly
> (data connection is suspended temporary). Using TNifProgressBuf, you will
> be able to detect the new state.
>
> The problem is that my Server uses two protocols:
> 1. Signaling Protocol
> 2. RealTime Media Transmission Protocol
>
> Server sends / receives hearbeats packets each 5 seconds. Incomming Calls
> are always ignored! (gprs connection always remains active)

Is this a good idea? From what you are saying, the line will almost
always be busy o receive calls.

>
> "Top SymbianSigned Failing Tests" document in "SymbianSigned.com" states:
> "5. The application doesn't pause when necessary, for example it
> continues when there's an incoming call without notifying the user."
>
> I will not pass SymbianSigned! Please help me!

I think you have misunderstood this test case. When there is a busy
signal there is no incoming call, you cannot fail the test. If this was
the case the browser would fail the test every time a download was in
progress.

But I don't know the repercussion of always having your line busy.

>
> Are you sure there is no API to Detect Incomming Calls?

There are APIs to do that, but for them to work you need to receive the
call. I don't think these APIs can help you if the phone is busy. The
busy tone is controlled by the network.

I may be wrong so please do ask around here some more.

>
> In fact, I'm not interested in detecting if GPRS Connection has been
> suspended. I'm interested in detecting Incomming Call.
>
> In phones that support voice call and 3G connection at the same time, it's
> also necessary to detect incomming voice call. My Server must do a list of
> tasks to pass SymbianSign:
>
> 1. Stop Streamming Audio.
>
> 2. Notify Symbian Applications that the Server will be unavailable during
> the voice cal.
>
> 3. etc.
>
>
>
> Thank You very much!
>
>
>
> "AMK" <[email protected]> escribi� en el mensaje
> news:[email protected]...[color=green]
>> Alfredo Rueda wrote:[color=darkred]
>>> Hello!
>>>
>>> My "Application" is a Symbian Server (that always works in background)
>>>
>>> The Symbian Server offers Voice User Interaction to Symbian Applications
>>> (just like Window Server offers Graphical User Interaction to Symbian
>>> Applications).
>>>
>>> This Symbian Server uses different resources:
>>> 1. Network Device (Voice Recognition is done in a remote server)
>>> 2. Audio Device (Record user voice requests and Playback responses)
>>> etc.
>>>
>>> Nokia 6600 don't allow Voice Call and IP Connection at the same time, so
>>> I must free the APN when Incoming Voice Call arrives. I observed that
>>> Nokia Web Browser (in Nokia 6600):
>>> 1. Detects Incoming Voice Call
>>> 2 Closes APN
>>> 3. Re-connect APN when voice call finishes

>> You do not need to do this yourself, the system shuts down or pauses the
>> connection when a call or sms comes in and resumes once done. You need to
>> make sure you do not time out.
>>
>> I have noticed at time that when there is an active transfer (downlink or
>> may be uplink) the caller gets a busy tone. If this is the case then I
>> guess there is nothing you can do detect an incoming call or sms. You do
>> not need to bother about this use case.
>>
>>> How can I achive the same behaviour?
>>>
>>> Thank You very much!
>>>
>>>
>>> "AMK" <[email protected]> escribi� en el mensaje
>>> news:[email protected]...
>>>> Alfredo Rueda wrote:
>>>>> From Symbian Signed Test Criteria:
>>>>>
>>>>> ------------------------------------------------------------------------------------------------------------------------------------
>>>>>
>>>>> Test ID
>>>>>
>>>>> PHN-01
>>>>>
>>>>> Test Title
>>>>>
>>>>> Service Interruption
>>>>>
>>>>> Test Coverage
>>>>>
>>>>> Sample
>>>>>
>>>>> Conformance
>>>>>
>>>>> Required
>>>>>
>>>>> Full Description
>>>>>
>>>>> When there is an interruption the application pauses and saves its
>>>>> state.
>>>>>
>>>>> The interruptions should be handled appropriately with respect to the
>>>>>
>>>>> context of the application and the interruption priority.
>>>>>
>>>>> ------------------------------------------------------------------------------------------------------------------------------------
>>>>>
>>>>> Which API do you use in S60 V2 to get notified of all these events?
>>>>>
>>>>> Receiving an incoming voice call
>>>>>
>>>>> Receiving an incoming SMS
>>>>>
>>>>> Receiving an incoming MMS
>>>>>
>>>>> Using the application whilst a VoIP call is
>>>>>
>>>>> already in progress, and creating a new VoIP
>>>>>
>>>>> call whilst the application is running (if
>>>>>
>>>>> An alarm notification event
>>>>>
>>>>> Connecting external power charger
>>>>>
>>>>> Switching of UI Modes (e.g. Flip,
>>>>>
>>>>> horizontal/vertical)
>>>>>
>>>>>
>>>>>
>>>>> Thank You very much!
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>> It may be easier to not listen to all these events and just pause your
>>>> app/state when your app goes to background.
>>>>
>>>> AMK
>>>

>> AMK[/color]
>
>[/color]

AMK