Closed Bug 906775 Opened 12 years ago Closed 12 years ago

Create a CallGroupHandler

Categories

(Firefox OS Graveyard :: Gaia::Dialer, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(blocking-b2g:koi+)

RESOLVED FIXED
blocking-b2g koi+

People

(Reporter: etienne, Assigned: etienne)

References

Details

(Whiteboard: [u=commsapps-user c=dialer p=3])

Attachments

(3 files)

The way the conference call is implemented in gecko we have 1 and only 1 telephony.callGroup. So we should have a CallGroupHandler singleton to support: * displaying/hiding the conference call "line" on the main screen * changing the style of the "line" on callGroup.statechange (hold/resume) * maintaining a conference call detail view (with handledCall's nodes) on callGroup.callschanged
Assignee: nobody → etienne
Blocks: 887686
koi+ as it links to koi-comms bug
blocking-b2g: --- → koi+
Whiteboard: [u=commsapps-user c=dialer p=0]
Whiteboard: [u=commsapps-user c=dialer p=0] → [u=commsapps-user c=dialer p=3]
Attached file Pointer to gaia PR
Here we go! This patch is definitely ready to start the review process. Hsin-Yi, I couldn't do any real world testing (on my unagi doing a |telephony.conferenceGroup.add(telephony.calls[0], telephony.calls[1])| with 2 calls does nothing right now). Could you test this patch? If you programatically create the conference call this patch should make the call screen display 1 "Call group (2)" line instead of the 2 calls lines. Thanks!
Attachment #796794 - Flags: review?(anthony)
Attachment #796794 - Flags: feedback?(htsai)
(In reply to Etienne Segonzac (:etienne) from comment #2) > Created attachment 796794 [details] > Pointer to gaia PR > > Here we go! > This patch is definitely ready to start the review process. > > Hsin-Yi, I couldn't do any real world testing (on my unagi doing a > |telephony.conferenceGroup.add(telephony.calls[0], telephony.calls[1])| with > 2 calls does nothing right now). Oh... is that because your sim card without conference call service enabled? What are the call states of the two calls? > > Could you test this patch? > If you programatically create the conference call this patch should make the > call screen display 1 "Call group (2)" line instead of the 2 calls lines. > > Thanks! I'd love to help but sorry that I might not be able to test until I get back to Taiwan next week. I will get back to you next week. :) And, can I create a conference call through this patch? Or I would need to hack the code to create a concall first?
How to use the patch (once applied) - make a call - receive a second call - choose hold and answer - 1.5sec after answering the second call we will try to merge the 2 - 1.5sec after that we log the state of the calls I get: E/GeckoConsole( 500): Content JS LOG at app://communications.gaiamobile.org/dialer/js/calls_handler.js:487 in holdAndAnswer/<: +++ auto merging the 2 calls E/GeckoConsole( 500): Content JS LOG at app://communications.gaiamobile.org/dialer/js/calls_handler.js:489 in holdAndAnswer/<: +++ auto merged the 2 calls E/GeckoConsole( 500): Content JS LOG at app://communications.gaiamobile.org/dialer/js/calls_handler.js:491 in holdAndAnswer/</<: +++ a few moment after the merge, the calls are E/GeckoConsole( 500): Content JS LOG at app://communications.gaiamobile.org/dialer/js/calls_handler.js:493 in holdAndAnswer/</</<: +++ 0 - call.state held E/GeckoConsole( 500): Content JS LOG at app://communications.gaiamobile.org/dialer/js/calls_handler.js:493 in holdAndAnswer/</</<: +++ 1 - call.state connected And I don't actually now if my SIM supports conference calls...
Attached image \o/
Just tried with my personal simcard and it worked :) Thanks Hsin-Yi for the pointer!
(In reply to Etienne Segonzac (:etienne) from comment #5) > Created attachment 797250 [details] > \o/ > > Just tried with my personal simcard and it worked :) > Thanks Hsin-Yi for the pointer! Awesome!!! (dance)
Hsin-Yi: We have a question about the API. Do calls included in mozTelephony.group.calls also exist in mozTelephony.calls?
Flags: needinfo?(htsai)
Comment on attachment 796794 [details] Pointer to gaia PR I have one change that I'd like to see. Other changes depend on the question I asked Hsin-Yi and if you agree about the logic change I'm proposing.
Attachment #796794 - Flags: review?(anthony) → review-
(In reply to Anthony Ricaud (:rik) from comment #7) > Hsin-Yi: We have a question about the API. Do calls included in > mozTelephony.group.calls also exist in mozTelephony.calls? The webidl says: // A call is contained either in Telephony or in TelephonyCallGroup. So my working assumption is no.
Comment on attachment 796794 [details] Pointer to gaia PR Ready for the second round.
Attachment #796794 - Flags: review- → review?(anthony)
(In reply to Etienne Segonzac (:etienne) from comment #9) > (In reply to Anthony Ricaud (:rik) from comment #7) > > Hsin-Yi: We have a question about the API. Do calls included in > > mozTelephony.group.calls also exist in mozTelephony.calls? > > The webidl says: > // A call is contained either in Telephony or in TelephonyCallGroup. > > So my working assumption is no. As Etienne said, no. They are exclusive.
Flags: needinfo?(htsai)
Comment on attachment 796794 [details] Pointer to gaia PR I like it a lot. The work in the previous bugs really paid off! Two easy comments left in the PR.
Attachment #796794 - Flags: review?(anthony) → review+
Comment on attachment 796794 [details] Pointer to gaia PR Asking for a last r? since I had to add a small change in handled_call.js. The current code was racy since the hc.call could be nullified before we remove the hc from the handledCalls array (discovered when a participant in a conf call hanged up). Thanks again!
Attachment #796794 - Flags: review+ → review?(anthony)
Comment on attachment 796794 [details] Pointer to gaia PR I am cancelling f? for now as Etienne is fine to test concall with the real network. Feel free to pin me again if anything I can help :)
Attachment #796794 - Flags: feedback?(htsai)
Comment on attachment 796794 [details] Pointer to gaia PR Good for me. A last minute change that I forgot: we need to update fake-oncall-desktop.js |CallScreen.callsCount = 1| -> |CallScreen.bigDuration = true|
Attachment #796794 - Flags: review?(anthony) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Following up on a call screen exit issue here: bug 912060
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: