Bug 795235 - B2G RIL: Use system message to notify a 'dialling' call. r=vicamo

This commit is contained in:
Hsin-Yi Tsai 2012-10-02 16:39:09 +08:00
parent db245b4835
commit 3924a76801
2 changed files with 14 additions and 1 deletions

View File

@ -526,6 +526,14 @@ RadioInterfaceLayer.prototype = {
case "setPreferredNetworkType":
this.handleSetPreferredNetworkType(message);
break;
case "stkcallsetup":
// A call has been placed by the STK app. We shall launch the dialer
// app by sending a system message, in order to further control the
// call, e.g. hang it up.
debug("STK app has placed a call no. " + message.command.options.address);
gSystemMessenger.broadcastMessage("icc-dialing", {state: "dialing",
number: message.command.options.address});
break;
default:
throw new Error("Don't know about this message type: " +
message.rilMessageType);

View File

@ -4443,7 +4443,12 @@ RIL[REQUEST_STK_GET_PROFILE] = null;
RIL[REQUEST_STK_SET_PROFILE] = null;
RIL[REQUEST_STK_SEND_ENVELOPE_COMMAND] = null;
RIL[REQUEST_STK_SEND_TERMINAL_RESPONSE] = null;
RIL[REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM] = null;
RIL[REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM] = function REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM(length, options) {
if (!options.rilRequestError && options.hasConfirmed) {
options.rilMessageType = "stkcallsetup";
this.sendDOMMessage(options);
}
};
RIL[REQUEST_EXPLICIT_CALL_TRANSFER] = null;
RIL[REQUEST_SET_PREFERRED_NETWORK_TYPE] = function REQUEST_SET_PREFERRED_NETWORK_TYPE(length, options) {
if (options.networkType == null) {