Changes

Jump to: navigation, search

WebAPI/WebTelephony

139 bytes removed, 05:01, 22 March 2012
Proposal (v2): telephony call states to support call holding
=== Proposal: Enhance WebTelephony API to hold a call ===
interface nsIDOMTelephony  : nsIDOMEventTarget { nsIDOMTelephonyCall dial(in DOMString number); attribute boolean muted; attribute boolean speakerEnabled; // The call that is "active", i.e. receives microphone input and tones // generated via startTone. readonly attribute jsval active; // Array of all calls that are currently connected. readonly attribute jsval calls; void startTone(in DOMString tone); void stopTone(); attribute nsIDOMEventListener onincoming; attribute nsIDOMEventListener oncallschanged; }; interface nsIDOMTelephonyCall : nsIDOMEventTarget { readonly attribute DOMString number;
// "dialing", "ringing", "busy", "connecting", "connected", "disconnecting", "disconnected", "incoming" // Add new states: "holding", "held", "resuming" readonly attribute boolean mutedDOMString state; void answer(); attribute boolean speakerEnabled void hangUp();
// The call that is "active", i.e. receives microphone input and tones // generated via startTone. readonly attribute jsval active; // Array of all calls that are currently connected. readonly attribute jsval calls; void startTone(in DOMString tone); void stopTone(); attribute nsIDOMEventListener onincoming; attribute nsIDOMEventListener onwaiting; //new attribute nsIDOMEventListener oncallschanged; }; interface nsIDOMTelephonyCall : nsIDOMEventTarget { readonly attribute DOMString number; readonly attribute DOMString state; // "dialing", "ringing", "busy", "connecting", make a "connected", "disconnecting", "disconnected", "incoming", // Add new states: "waiting", "holding", call into "held", "resuming" void answerholdCall(); //make an incoming call or a waiting call into //"connectedheld" void hangUp(); void holdCal(); //change a connected call into back to "heldconnected" void resumeCall(); //change a "held" call into connected attribute nsIDOMEventListener onstatechange; attribute nsIDOMEventListener ondialing; attribute nsIDOMEventListener onringing; attribute nsIDOMEventListener onbusy; attribute nsIDOMEventListener onconnecting; attribute nsIDOMEventListener onconnected; attribute nsIDOMEventListener ondisconnecting; attribute nsIDOMEventListener ondisconnected; // attribute nsIDOMEventListener onincoming; /* new events */ attribute nsIDOMEventListener onholding; //new attribute nsIDOMEventListener onheld; //new attribute nsIDOMEventListener onresuming; //new };
Confirm
978
edits

Navigation menu