stk-api: Proposed Set Up Call api.
RFC PATCH 1/1 stk-api: Proposed Set Up Call api.
--- doc/stk-api.txt | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-)
doc/stk-api.txt +15 -0
@@ -55,6 +55,14 @@ Signals PropertyChanged(string property, variant value) Signal is emitted whenever a property has changed. The new value is passed as the signal argument. + CallSetUp(string message, byte icon_id, object call) + + Informs about a new VoiceCall that is being set + up as a result of a UICC request and gives the + message associated with the call to be shown to + the user. Hanging-up the call before it is + connected will terminate the current session. + Properties string IdleText Contains the text to be used when the home screen is
@@ -189,6 +197,13 @@ Methods byte RequestSelection(string title, byte icon_id, Possible Errors: [service].Error.SimToolkit.GoBack + boolean ConfirmCallSetup(string message, byte icon_id) + + Asks the agent to request user to confirm an + outgoing call setup. + + Possible Errors: [service].Error.SimToolkit.EndSession + void Cancel() Asks the agent to cancel any ongoing operation in
Signature · 1 line
1.7.1.86.g0e460.dirty
Hi Andrew,
doc/stk-api.txt Signals PropertyChanged(string property, variant value) · line 58
Quoted 13 lines
--- doc/stk-api.txt | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-)doc/stk-api.txt +1
-0@@ -55,6 +55,14 @@ Signals PropertyChanged(string property, variant value) Signal is emitted whenever a property has changed. The new value is passed as the signal argument. + CallSetUp(string message, byte icon_id, object call)
to be consistent this should be CallSetup(...)
Quoted 13 lines
doc/stk-api.txt +6
-0+ Informs about a new VoiceCall that is being set + up as a result of a UICC request and gives the + message associated with the call to be shown to + the user. Hanging-up the call before it is + connected will terminate the current session. + Properties string IdleText Contains the text to be used when the home screen is@@ -189,6 +197,13 @@ Methods byte RequestSelection(string title, byte icon_id, Possible Errors: [service].Error.SimToolkit.GoBack
doc/stk-api.txt Methods byte RequestSelection(string title, byte icon_id, · line 209
Quoted 10 lines
doc/stk-api.txt +7
-0+ boolean ConfirmCallSetup(string message, byte icon_id) + + Asks the agent to request user to confirm an + outgoing call setup. + + Possible Errors: [service].Error.SimToolkit.EndSession + void Cancel() Asks the agent to cancel any ongoing operation in
Why do we need two handlers here. One signal and one agent callback. I do understand the agent callback. That is pretty obvious, but why do you also wanna send the signal as well. Would this be just go via the voice call interface and be transparent for the dialer?
Regards
Marcel
Hi,
Quoted 14 lines · Marcel Holtmann
Hi Andrew,
Quoted 12 lines
---
doc/stk-api.txt | 15 +++++++++++++++1 files changed, 15 insertions(+), 0 deletions(-)doc/stk-api.txt +0
-0@@ -55,6 +55,14 @@ Signals PropertyChanged(string property, variant value)Signal is emitted whenever a property has changed. The new value is passed as the signal argument.
Quoted 3 lines
Quoted 1 line
+
CallSetUp(string message, byte icon_id, object call)to be consistent this should be CallSetup(...)
They're not interchangeable though because setup is a noun, and in this case we're notifying that "a call has been set up / is being set up".
Quoted 23 lines
Quoted 23 lines
+ Informs about a new VoiceCall that is being set
+ up as a result of a UICC request and gives the
+ message associated with the call to be shown to
+ the user. Hanging-up the call before it is
+ connected will terminate the current session. +
Properties string IdleTextContains the text to be used when the home screen is
doc/stk-api.txt +0
-0@@ -189,6 +197,13 @@ Methods byte RequestSelection(string title, byte icon_id,Possible Errors: [service].Error.SimToolkit.GoBack
+ boolean
ConfirmCallSetup(string message, byte icon_id)doc/stk-api.txt +6
-0+ + Asks the agent to request user to confirm an + outgoing call setup. + + Possible Errors: [service].Error.SimToolkit.EndSession +void
Cancel()
Quoted 6 lines
Quoted 1 line
Asks the agent to cancel any ongoing operation in
Why do we need two handlers here. One signal and one agent callback. I do understand the agent callback. That is pretty obvious, but why do you also wanna send the signal as well. Would this be just go via the voice call interface and be transparent for the dialer?
This is a possiblity, I'm not very sure what would be the best option.
The reason for the signal was so that the alpha id can be associated
with given VoiceCall object. (The same VoiceCall object will of course be available in VoiceCallManager properties).
The timeline for call setup is something like:
* Modem asks user for confirmation using icon1 / alphaId1.
* User confirms
* Modem starts dialling, screen displays icon2 / alphaId2,
* Call is connected, modem replies to the proactive command, screen
keeps displaying icon2 / alphaId2 until the phone call is over.
Best regards
Hi Andrew,
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
doc/stk-api.txt | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-)doc/stk-api.txt +0
-0@@ -55,6 +55,14 @@ Signals PropertyChanged(string property, variant value) Signal is emitted whenever a property has changed. The new value is passed as the signal argument.
Quoted 7 lines
Quoted 3 lines
doc/stk-api.txt Signals PropertyChanged(string property, variant value) · line 58
Quoted 1 line
doc/stk-api.txt +1
-0+ CallSetUp(string message, byte icon_id, object call)to be consistent this should be CallSetup(...)
They're not interchangeable though because setup is a noun, and in this case we're notifying that "a call has been set up / is being set up".
then I prefer something like CallSetupCompleted or similar. Do we need a CallSetupFailed as well? Can it fail? Is this an expected behavior, can we ignore it?
Quoted 34 lines
Quoted 22 lines
Quoted 22 lines
doc/stk-api.txt +13
-0+ Informs about a new VoiceCall that is being set + up as a result of a UICC request and gives the + message associated with the call to be shown to + the user. Hanging-up the call before it is + connected will terminate the current session. + Properties string IdleText Contains the text to be used when the home screen is@@ -189,6 +197,13 @@ Methods byte RequestSelection(string title, byte icon_id, Possible Errors: [service].Error.SimToolkit.GoBack + boolean ConfirmCallSetup(string message, byte icon_id) + + Asks the agent to request user to confirm an + outgoing call setup. + + Possible Errors: [service].Error.SimToolkit.EndSession + void Cancel()Quoted 6 lines
doc/stk-api.txt Methods byte RequestSelection(string title, byte icon_id, · line 209
Quoted 1 line
doc/stk-api.txt +0
-0Asks the agent to cancel any ongoing operation inWhy do we need two handlers here. One signal and one agent callback. I do understand the agent callback. That is pretty obvious, but why do you also wanna send the signal as well. Would this be just go via the voice call interface and be transparent for the dialer?
This is a possiblity, I'm not very sure what would be the best option.
The reason for the signal was so that the alpha id can be associated
with given VoiceCall object. (The same VoiceCall object will of course be available in VoiceCallManager properties).
Quoted 7 lines
The timeline for call setup is something like:
* Modem asks user for confirmation using icon1 / alphaId1.
* User confirms
* Modem starts dialling, screen displays icon2 / alphaId2,
* Call is connected, modem replies to the proactive command, screen
keeps displaying icon2 / alphaId2 until the phone call is over.
For simplicity, I would say that this should just happen via the new CallAdded signal and we make icon and alphaid part of the call properties. That would be my idea right now.
Maybe we just generalize this into Message and Icon property anyway. The Icon is rather useless, but the Message could be useful for CNAP support as well. Just an idea.
Regards
Marcel