Confirmed users
978
edits
(webtelephony api for multisim) |
|||
Line 49: | Line 49: | ||
void hangUp(); | void hangUp(); | ||
void hold(); | void hold(); | ||
void resume(); | void resume(); | ||
Line 66: | Line 65: | ||
attribute nsIDOMEventListener onresuming; | attribute nsIDOMEventListener onresuming; | ||
}; | }; | ||
=== Use Case === | |||
==== Outgoing Call ==== | |||
*Current B2G | |||
navigator.mozTelephony.dial(number) | |||
*Multi-SIM | |||
navigator.mozTelephonyManager.defaultPhone.dial() | |||
navigator.mozTelephonyManager.phones[index].dial() | |||
==== Incoming Call ==== | |||
*Current B2G | |||
Tel1 = navigator.mozTelephony; | |||
*Multi-SIM | |||
Tel1 = navigator.mozTelephonyManager.phones[index]; | |||
Once the telephony object is obtained, the following work remains the same. | |||
Tel1.addEventListener('incoming'); | |||
Tel1.onincoming = function onincoming (evt) { | |||
incoming = evt.call; }; | |||
incoming.answer(); | |||
== Proposal: Architecture == |