Changes

Jump to: navigation, search

WebAPI/WebTelephony

354 bytes removed, 06:26, 6 June 2012
consolidate and update WebTelephony
== Goals ==
The aim of WebTelephony is to establish a DOM API, which allows web content to dial out and mediate incoming calls, i.e. answer, reject, hold or resume a call.
== Status ==
WebTelephony meta bug: {{bug|674726}}
B2G telephony meta telephony bug: {{bug|699235}}
== Implementation Specifics ==
=== DOM API Telephony call states ===
=== Proposal: Enhance telephony call states to hold a call === The diagram below shows the current design of B2G telephony call states (white blocks) and the proposal for holding a call (yellow blocks).
<br>
&nbsp;[[Image:Proposal TelephonyCallStates v2.png|842x936px|Proposal of telephony call states to support call holding]]<br>
=== Proposal: Enhance WebTelephony DOM API to hold a call ===
interface nsIDOMTelephony: nsIDOMEventTarget
{
nsIDOMTelephonyCall dial(in DOMString number);
attribute nsIDOMEventListener onincoming;
//attribute nsIDOMEventListener oncallschanged; /* new events */ attribute nsIDOMEventListener onoutgoing; attribute nsIDOMEventListener onconnected; attribute nsIDOMEventlistener ondisconnected;
};
readonly attribute DOMString number;
// "dialing", "alerting", "busy", "connecting", "connected", "disconnecting", "disconnected", "incoming" // Add new states: , "holding", "held", "resuming"
readonly attribute DOMString state;
attribute nsIDOMEventListener onstatechange;
//attribute attribute nsIDOMEventListener ondialing;
attribute nsIDOMEventListener onalerting;
attribute nsIDOMEventListener onbusy;
attribute nsIDOMEventListener ondisconnecting;
attribute nsIDOMEventListener ondisconnected;
// attribute nsIDOMEventListener onincoming; /* new events */
attribute nsIDOMEventListener onholding;
attribute nsIDOMEventListener onheld;
attribute nsIDOMEventListener onresuming;
};
Confirm
978
edits

Navigation menu