Closed Bug 863281 Opened 12 years ago Closed 12 years ago

B2G WebTelephony - expose emergency call info

Categories

(Firefox OS Graveyard :: General, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

(blocking-b2g:leo+, firefox22 wontfix, firefox23 wontfix, firefox24 fixed, b2g18+ fixed, b2g18-v1.0.0 wontfix, b2g18-v1.0.1 wontfix, b2g-v1.1hd fixed)

VERIFIED FIXED
blocking-b2g leo+
Tracking Status
firefox22 --- wontfix
firefox23 --- wontfix
firefox24 --- fixed
b2g18 + fixed
b2g18-v1.0.0 --- wontfix
b2g18-v1.0.1 --- wontfix
b2g-v1.1hd --- fixed

People

(Reporter: dpalomino, Assigned: aknow)

References

Details

(Whiteboard: IOT, Chile, Ikura, khepera_43872, khepera_43902, khepera_43365, [fixed-in-birch])

Attachments

(7 files, 22 obsolete files)

2.72 KB, patch
Details | Diff | Splinter Review
5.89 KB, patch
Details | Diff | Splinter Review
2.30 KB, patch
hsinyi
: review+
Details | Diff | Splinter Review
5.66 KB, patch
Details | Diff | Splinter Review
2.31 KB, patch
Details | Diff | Splinter Review
6.02 KB, patch
Details | Diff | Splinter Review
3.22 KB, patch
Details | Diff | Splinter Review
Raised during certification iot, but not a blocking issue Buildid "20130321070205", device: ikura gecko commit: b5183c99228bdc5be33340e359efd1b4f0859e92 gaia commit: 577d13088ebdbd353d13910d3317e713a140415b When performing a emergency call (for instance, to 112 or 911), a message should be shown to the user noticing that an emergency call is ongoing. Suggestions for English/Spanish tags: English tag: "Emergency call" Spanish tag: "Llamada de emergencia"
Whiteboard: IOT, Chile, Ikura, khepera_43872, khepera_43902
blocking-b2g: --- → tef?
Whiteboard: IOT, Chile, Ikura, khepera_43872, khepera_43902 → IOT, Chile, Ikura, khepera_43872, khepera_43902, khepera_43365
Assignee: nobody → szchen
Hi Mounir, For this feature, we have to provide the information for gaia to know whether the call is an emergency call. I learned that this kind of ability has been discussed before. Is there any concern for revealing the information? Currently, we have two proposals: 1. Add a property field (isEmergency) in telephony call. Thus when making a call, we know its type and could show the correct label. 2. Provide a api to check whether a number is an emergency number. This may become a phone number utility. I would like to know is there any other user stories related to checking emergency number. This could be very help for designing a proper API.
Flags: needinfo?(mounir)
Hi, We've achieved to decrease priority of this issue with the carrier, so now it is an important issue, but not blocking for certification. If it's a risky or difficult issue, I'd suggest to move to tef-. Thanks! David
David, what is the rationale behind that feature? Do people really need to have a label saying that they are doing an emergency call when they actually typed the number? Is that a common UI? Why was that related to certification?
Flags: needinfo?(mounir) → needinfo?(dpv)
Hi :mounir This feature, is a common UI in handsets. As part of the certification process, operators usually have a set of test cases related to UI and User Experience, and they give a lot of importance to this part of the testing, since a bad UEx could lead to several complaints on their Call Centers. Regarding this specific issue, a tag that confirms the users that what they're dialing is, actually, an emergency number, gives them confidence about the action they're performing, confirming they are really dialing an emergency number and not other. BR
Flags: needinfo?(dpv)
I think we could add a .emergency boolean on the Call interface.
Whiteboard: IOT, Chile, Ikura, khepera_43872, khepera_43902, khepera_43365 → IOT, Chile, Ikura, khepera_43872, khepera_43902, khepera_43365, [tef-triage]
We believe that emergency call functionality is important, so definitely tracking, but since it's not a certification blocker we won't block.
blocking-b2g: tef? → -
tracking-b2g18: --- → +
Whiteboard: IOT, Chile, Ikura, khepera_43872, khepera_43902, khepera_43365, [tef-triage] → IOT, Chile, Ikura, khepera_43872, khepera_43902, khepera_43365,
This issue reproduces on the Inari device. Build ID: 20130426070207 Environmental Variables: Kernel Date: Feb 21 Gecko: http://hg.mozilla.org/releases/mozilla-b2g18_v1_0_1/rev/54285d67454b Gaia: c47ef39de04e634d847cc86b6acc616fabce69eb A message is not shown that the user is connected to an emergency number (911).
Attachment #743005 - Flags: superreview?(mounir)
Attachment #743005 - Flags: review?(htsai)
Attachment #743009 - Flags: review?(htsai)
Current patch has a problem in marionette test. The solution set the emergency flag in ril_worker only when it enter RIL.CALL_STATE_DIALING. However, in emulator, it seems that RIL will skip this state and directly go into CALL_STATE_ALERTING. Still need some modification.
Attachment #743511 - Flags: review?(htsai)
(In reply to Szu-Yu Chen [:aknow] from comment #11) > Current patch has a problem in marionette test. > > The solution set the emergency flag in ril_worker only when it enter > RIL.CALL_STATE_DIALING. However, in emulator, it seems that RIL will skip > this state and directly go into CALL_STATE_ALERTING. > > Still need some modification. Problem fixed after sync to latest emulator code
Comment on attachment 743005 [details] [diff] [review] [PATCH 1/4] Add emergency property in TelephonyCall Review of attachment 743005 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/telephony/nsITelephonyProvider.idl @@ +3,4 @@ > * You can obtain one at http://mozilla.org/MPL/2.0/. */ > > #include "nsISupports.idl" > +[scriptable, uuid(bde19ba2-83c8-4df7-a014-28fe71535527)] nit: could you keep the empty line between the "#include" line and the "[scriptable, ...]" one?
Attachment #743005 - Flags: superreview?(mounir) → superreview+
Attachment #743005 - Attachment is obsolete: true
Attachment #743005 - Flags: review?(htsai)
Attachment #744408 - Attachment description: Add emergency property in TelephonyCall → Add emergency property in TelephonyCall (2)
Attachment #744408 - Flags: review?(htsai)
Attachment #744408 - Flags: review?(htsai) → review+
Component: Gaia::Dialer → General
Comment on attachment 743009 [details] [diff] [review] [PATCH 2/4] Pass emergency info from ril to dom Review of attachment 743009 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/system/gonk/ril_worker.js @@ +3263,5 @@ > if (newCall.state == CALL_STATE_INCOMING) { > newCall.direction = 'incoming'; > } else if (newCall.state == CALL_STATE_DIALING) { > newCall.direction = 'outgoing'; > + if (!international) newCall.isEmergency = nit: coding style, use braces. if (!international) { newCall.isEmergency = this._isEmergencyNumber(newCall.number); }
Attachment #743009 - Flags: review?(htsai) → review+
Comment on attachment 743010 [details] [diff] [review] [PATCH 3/4] Update emergency property for outgoing call Review of attachment 743010 [details] [diff] [review]: ----------------------------------------------------------------- The DOM changes look good to me. Since I am not a DOM peer, ask for DOM peers' review. Need BT peer's review as well.
Attachment #743010 - Flags: review?(htsai)
Attachment #743010 - Flags: review?(gyeh)
Attachment #743010 - Flags: review?(bent.mozilla)
Attachment #743010 - Flags: feedback+
Comment on attachment 743511 [details] [diff] [review] [PATCH 4/4] Add test for emergency label Review of attachment 743511 [details] [diff] [review]: ----------------------------------------------------------------- The test looks good, but I would like to check 'emergency' in every call state. Let's do that. Thanks!
Attachment #743511 - Flags: review?(htsai)
B.t.w. please describe the part and version numbers of each attachment clearly in the blank 'Description.' Thanks.
Attachment #743009 - Attachment description: Pass emergency info from ril to dom → [PATCH 2/4] Pass emergency info from ril to dom
Attachment #743010 - Attachment description: Update emergency property for outgoing call → [PATCH 3/4] Update emergency property for outgoing call
Attachment #743511 - Attachment description: Add test for emergency label → [PATCH 4/4] Add test for emergency label
Attachment #744408 - Attachment description: Add emergency property in TelephonyCall (2) → [PATCH 1/4 #2] Add emergency property in TelephonyCall (2)
Attachment #743005 - Attachment description: Add emergency property in TelephonyCall → [PATCH 1/4] Add emergency property in TelephonyCall
Attachment #744408 - Attachment description: [PATCH 1/4 #2] Add emergency property in TelephonyCall (2) → [PATCH 1/4 #2] Add emergency property in TelephonyCall
Attachment #743511 - Attachment is obsolete: true
Attachment #744469 - Flags: review?(htsai)
Comment on attachment 744469 [details] [diff] [review] [PATCH 4/4 #2] Add test for emergency label Review of attachment 744469 [details] [diff] [review]: ----------------------------------------------------------------- Nice! Thank you. P.s. don't forget to add 'r=XXX' in the commit comment.
Attachment #744469 - Flags: review?(htsai) → review+
Comment on attachment 743010 [details] [diff] [review] [PATCH 3/4] Update emergency property for outgoing call Review of attachment 743010 [details] [diff] [review]: ----------------------------------------------------------------- Looks good to me for Bluetooth Hfp part.
Attachment #743010 - Flags: review?(gyeh) → review+
Comment on attachment 744408 [details] [diff] [review] [PATCH 1/4 #2] Add emergency property in TelephonyCall Review of attachment 744408 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/telephony/nsITelephonyProvider.idl @@ +24,5 @@ > void callStateChanged(in unsigned long callIndex, > in unsigned short callState, > in AString number, > + in boolean isActive, > + in boolean isEmergency); Sorry, my bad. We should also add |isEmergency| in enumerateCallState. Please take care of this in this and other parts, Aknow.
Attachment #744408 - Flags: review+
Summary: emergency call label not shown → B2G WebTelephony - expose emergency call info
Attachment #744408 - Attachment is obsolete: true
Attachment #743009 - Attachment is obsolete: true
Attachment #743010 - Attachment is obsolete: true
Attachment #743010 - Flags: review?(bent.mozilla)
Attachment #747359 - Attachment description: [PATCH 1/4 #3] Add emergency property in TelephonyCall. r=htsai, sr=mounir. → [PATCH 1/4 #3] Add emergency property in TelephonyCall.
Attachment #747363 - Attachment description: [PATCH 2/4 #2] Pass emergency info from ril to dom. r=htsai. → [PATCH 2/4 #2] Pass emergency info from ril to dom.
Attachment #747359 - Attachment is obsolete: true
Attachment #747359 - Attachment is obsolete: false
Attachment #747359 - Attachment is obsolete: true
Attachment #747363 - Attachment is obsolete: true
Attachment #747754 - Attachment description: [PATCH 2/4] Pass emergency info from ril to dom. → [PATCH 2/4 #3] Pass emergency info from ril to dom.
Attachment #747364 - Attachment is obsolete: true
Attachment #747753 - Flags: superreview?(mounir)
Attachment #747753 - Flags: review?(htsai)
Attachment #747754 - Flags: review?(htsai)
Attachment #747755 - Flags: review?(htsai)
Attachment #747753 - Flags: superreview?(mounir) → superreview+
Comment on attachment 747753 [details] [diff] [review] [PATCH 1/4 #4] Add emergency property in TelephonyCall. Review of attachment 747753 [details] [diff] [review]: ----------------------------------------------------------------- Let's use r=hsinyi as what we've been doing ;)
Attachment #747753 - Flags: review?(htsai) → review+
Attachment #747754 - Flags: review?(htsai) → review+
Comment on attachment 747755 [details] [diff] [review] [PATCH 3/4 #3] Update emergency property for outgoing call. Review of attachment 747755 [details] [diff] [review]: ----------------------------------------------------------------- Please address the comment and rebase this patch since Bug 869306 made some changes. ::: dom/telephony/Telephony.cpp @@ +456,4 @@ > } > > nsRefPtr<TelephonyCall> call = > + TelephonyCall::Create(this, aNumber, aCallState, aCallIndex, aIsEmergency); Need to update |TelephonyCall::Create()| in |Telephony::CallStateChanged()| as well. ::: dom/telephony/TelephonyCall.h @@ +39,4 @@ > > static already_AddRefed<TelephonyCall> > Create(Telephony* aTelephony, const nsAString& aNumber, uint16_t aCallState, > + uint32_t aCallIndex = kOutgoingPlaceholderCallIndex, bool aEmergency = false); nit: 80 chars per line
Attachment #747755 - Flags: review?(htsai)
Comment on attachment 747753 [details] [diff] [review] [PATCH 1/4 #4] Add emergency property in TelephonyCall. Review of attachment 747753 [details] [diff] [review]: ----------------------------------------------------------------- Let's use r=hsinyi as what we've been doing ;) Please rebase this patch since Bug 869306 made some changes.
Comment on attachment 747754 [details] [diff] [review] [PATCH 2/4 #3] Pass emergency info from ril to dom. Review of attachment 747754 [details] [diff] [review]: ----------------------------------------------------------------- Please rebase this patch since Bug 869306 made some changes.
Attachment #747755 - Attachment is obsolete: true
Attachment #748677 - Flags: review?(htsai)
Comment on attachment 748677 [details] [diff] [review] [PATCH 3/4 #4] Update emergency property for outgoing call. Perfect, thanks! Hi Gina, Minor change to BT code. Would you help review it again? :)
Attachment #748677 - Flags: review?(htsai)
Attachment #748677 - Flags: review?(gyeh)
Attachment #748677 - Flags: review+
Comment on attachment 748677 [details] [diff] [review] [PATCH 3/4 #4] Update emergency property for outgoing call. Review of attachment 748677 [details] [diff] [review]: ----------------------------------------------------------------- Looks great. Thanks!
Attachment #748677 - Flags: review?(gyeh) → review+
Comment on attachment 748700 [details] [diff] [review] (x) Part 2: Pass emergency info from ril to dom. r=htsai. some code modification for updating 'emergency' flag in ril_worker.js
Attachment #748700 - Flags: review?(htsai)
Attachment #748700 - Attachment is obsolete: true
Attachment #748700 - Flags: review?(htsai)
Comment on attachment 748717 [details] [diff] [review] Part 2: Pass emergency info from ril to dom. r=htsai. Review of attachment 748717 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/system/gonk/ril_worker.js @@ +3266,5 @@ > } > + > + // Set flag for outgoing emergency call. > + if (newCall.isOutgoing && this._isEmergencyNumber(newCall.number)) { > + newCall.isEmergency = true; nit: we can have the following: newCall.isEmergency = newCall.isOutgoing && this._isEmergencyNumber(newCall.number);
Aknow, if your patches are ready to push, simply set checkin? or add checkin-needed keyword. I (and other devs with privilege) will be happy to help push them. :)
Comment on attachment 748717 [details] [diff] [review] Part 2: Pass emergency info from ril to dom. r=htsai. some code modification for updating 'emergency' flag in ril_worker.js
Attachment #748717 - Flags: review?(htsai)
Attachment #748717 - Flags: review?(htsai) → review+
Whiteboard: IOT, Chile, Ikura, khepera_43872, khepera_43902, khepera_43365, → IOT, Chile, Ikura, khepera_43872, khepera_43902, khepera_43365, [fixed-in-birch]
Modified manifest.ini
Attachment #748703 - Attachment is obsolete: true
Should this also be uplifted to v1.0.1 as it blocks a certification blocker bug for 1.0.1?
It's currently not listed as blocking any tef+ bugs. If you think something that's not currently listed as tef+ should be a blocker then please nominate that. If this bug blocks something that is already tef+ then please add the dependency.
It is not blocking certification, it was reported during certification but not as a blocker. We should add it in v1.1.
leo? since it blocks leo+ bug 870187
blocking-b2g: - → leo?
On B02 (4/26 build) in certification lab in Chile: Once the calls are initiated, we expect to see a label stating that it's an emergency number that's just been dialed. However, in the case of 112, it says only "Conectando.." (in the case of Chile). This needs to be rechecked in Columbia with "123" On 5/13 build: 112 is working correctly (at least in Chile). 123 needs to be rechecked in Columbia.
Status: RESOLVED → VERIFIED
Flags: needinfo?(dpv)
blocking-b2g: leo? → leo+
Whiteboard: IOT, Chile, Ikura, khepera_43872, khepera_43902, khepera_43365, [fixed-in-birch] → IOT, Chile, Ikura, khepera_43872, khepera_43902, khepera_43365, [fixed-in-birch], [NO_UPLIFT]
Whiteboard: IOT, Chile, Ikura, khepera_43872, khepera_43902, khepera_43365, [fixed-in-birch], [NO_UPLIFT] → IOT, Chile, Ikura, khepera_43872, khepera_43902, khepera_43365, [fixed-in-birch][NO_UPLIFT]
Thanks John for the update! Current behaviour is acceptable for 1.0.1. Thks! David
Flags: needinfo?(dpv)
Hi Anshul, Any update of Commercial RIL? Is this ready to be landed to b2g18? Thanks.
Flags: needinfo?(anshulj)
Hsin-Yi, yes we have the support since few days, sorry for the delay in responding to your query.
Flags: needinfo?(anshulj)
(In reply to Anshul from comment #59) > Hsin-Yi, yes we have the support since few days, sorry for the delay in > responding to your query. Thanks, Anshul. I'll be clearing [NO_UPLIFT] whiteboard. Hi Aknow, Let's land this into mozilla-b2g18. Please provide your b2g18-patches, and then set checkin? for each attachment. Thank you.
Whiteboard: IOT, Chile, Ikura, khepera_43872, khepera_43902, khepera_43365, [fixed-in-birch][NO_UPLIFT] → IOT, Chile, Ikura, khepera_43872, khepera_43902, khepera_43365, [fixed-in-birch]
You don't need to set checkin? on each patch. This bug comes up in the regular leo uplift queries, so I just need the b2g18 patches and we're good here.
(In reply to Ryan VanderMeulen [:RyanVM] from comment #61) > You don't need to set checkin? on each patch. This bug comes up in the > regular leo uplift queries, so I just need the b2g18 patches and we're good > here. Cool, it's simpler than what I am aware of. Thank you for clarifying. :)
Attachment #756385 - Attachment description: [b2g18] Part 1: Add emergency property in TelephonyCall. r=htsai. sr=mounir. → [b2g18] Part 1: Add emergency property in TelephonyCall.
Attachment #744469 - Attachment is obsolete: true
Attachment #747753 - Attachment is obsolete: true
Attachment #747754 - Attachment is obsolete: true
Attachment #748677 - Attachment is obsolete: true
Attachment #756385 - Attachment is obsolete: true
Attachment #756386 - Attachment is obsolete: true
Attachment #756388 - Attachment is obsolete: true
Attachment #756389 - Attachment is obsolete: true
b2g18-patches are ready and attached.
Hi Ryan, Sorry for the test fail. The failed test case is what I add for this bug. It works well when I test on: b2g emultaor (w/ external/qemu on b2g/master head) + gecko (mozilla-b2g18) But it indeed fail when I push the change to try server. I'm now wondering whether it is cause by the different version of emulator. Hi Jonathan Is the version of emulator used on mozilla-center try the same as which on mozilla-b2g18 try? How could I know the exact version of emulator (external/qemu) used on those try server?
Flags: needinfo?(jgriffin)
We have different versions of the emulator on m-c and mozilla-b2g18; the mozilla-b2g18 one is older. If you need a new emulator on that branch, we can file a bug to get one uploaded. I'll take care of that.
Flags: needinfo?(jgriffin)
Depends on: 878888
Attachment #756407 - Attachment is obsolete: true
Attachment #757821 - Attachment is obsolete: true
Attachment #748703 - Attachment description: Part 4: Add test for emergency label. r=htsai. → (x) Part 4: Add test for emergency label. r=htsai.
Attachment #748700 - Attachment description: Part 2: Pass emergency info from ril to dom. r=htsai. → (x) Part 2: Pass emergency info from ril to dom. r=htsai.
Hi Ryan, Problem confirmed. It's because of the version of emulator. Even after the update, it is still not new enough for the test case. We decide not to check-in the test case so please help me land the patch from part 1 to part 3. It works well on the try. https://tbpl.mozilla.org/?tree=Try&rev=ec770d408ec5
Flags: in-moztrap-
Depends on: 894920
the issues has been reopen in FFOS 1.1,The wording lable must be changed to "Llamada de emergencia" in Spanish,when an emergency call is established built ID:20130820074633 QC RIL version: "ro.build.firmware_revision=V1.01.00.01.019.180" gaia commit: 4916f82 Merge branch 'zte/ics_strawberry_cdr' of ssh://10.67.16.41:29418/quic/lf/releases/gaia into ics_strawberry_cdr gecko commit: a1c2bb0 ZRL modify ACCEPT Http head for MMS
(In reply to FangChen from comment #80) > the issues has been reopen in FFOS 1.1,The wording lable must be changed to > "Llamada de emergencia" in Spanish,when an emergency call is established > > built ID:20130820074633 > QC RIL version: > "ro.build.firmware_revision=V1.01.00.01.019.180" > gaia commit: > 4916f82 Merge branch 'zte/ics_strawberry_cdr' of > ssh://10.67.16.41:29418/quic/lf/releases/gaia into ics_strawberry_cdr > gecko commit: > a1c2bb0 ZRL modify ACCEPT Http head for MMS Should be Bug 870187. This is the bug for gaia UI.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: