Bug 831630 - Part 2: [B2G STK]: Support duration for DISPLAY TEXT, SETUP CALL. r=allstars.chh

From 2c2cf6206e3f42a81e0293f3c40aae2d22e056a3 Mon Sep 17 00:00:00 2001
---
 dom/system/gonk/ril_worker.js |   11 +++++++++++
 1 file changed, 11 insertions(+)
This commit is contained in:
Siddartha Pothapragada 2013-02-06 10:56:52 -08:00
parent 380aa4f815
commit ad45a4814a

View File

@ -7412,6 +7412,11 @@ let StkCommandParamsFactory = {
textMsg.responseNeeded = true;
}
ctlv = StkProactiveCmdHelper.searchForTag(COMPREHENSIONTLV_TAG_DURATION, ctlvs);
if (ctlv) {
textMsg.duration = ctlv.value;
}
// High priority.
if (cmdDetails.commandQualifier & 0x01) {
textMsg.isHighPriority = true;
@ -7576,6 +7581,12 @@ let StkCommandParamsFactory = {
}
call.address = ctlv.value.number;
// see 3GPP TS 31.111 section 6.4.13
ctlv = StkProactiveCmdHelper.searchForTag(COMPREHENSIONTLV_TAG_DURATION, ctlvs);
if (ctlv) {
call.duration = ctlv.value;
}
return call;
},