summaryrefslogtreecommitdiff
path: root/src/components/HMI/ffw/BasicCommunicationRPC.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/HMI/ffw/BasicCommunicationRPC.js')
-rw-r--r--src/components/HMI/ffw/BasicCommunicationRPC.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/components/HMI/ffw/BasicCommunicationRPC.js b/src/components/HMI/ffw/BasicCommunicationRPC.js
index ed33daef17..6ef3fc60fc 100644
--- a/src/components/HMI/ffw/BasicCommunicationRPC.js
+++ b/src/components/HMI/ffw/BasicCommunicationRPC.js
@@ -485,6 +485,32 @@ FFW.BasicCommunication = FFW.RPCObserver
request.id,
request.method);
}
+ if (request.method == "BasicCommunication.DialNumber") {
+
+ SDL.PopUp.create().appendTo('body').popupActivate(
+ "Would you like to dial " + request.params.number + " ?",
+ function (result) {
+ if (result) {
+
+ FFW.BasicCommunication.sendBCResult(SDL.SDLModel.resultCode["SUCCESS"],
+ request.id,
+ request.method);
+
+ SDL.SDLModel.onDeactivateApp('call', request.params.appID);
+ SDL.States.goToStates('phone.dialpad');
+ SDL.PhoneController.incomingCall(request);
+ } else {
+
+
+ FFW.BasicCommunication.sendError(SDL.SDLModel.resultCode["REJECTED"],
+ request.id,
+ request.method,
+ "No paired device!"
+ );
+ }
+ },
+ false);
+ }
if (request.method == "BasicCommunication.ActivateApp") {
if (!request.params.level || request.params.level == "FULL") {