This article is in need of a technical review.
This feature is not on a current W3C standards track, but it is supported on the Firefox OS platform. Although implementations may change in the future and it is not supported widely across browsers, it is suitable for use in code dedicated to Firefox OS apps.
Returns the current state of the phone call. Read only.
var state = window.navigator.mozTelephony.state;
Returns a string indicating the current state of the phone call; this is one of the Call state values.
Call state values
Each state is represented by a string.
||The number that was dialed for this call is busy.|
||The phone has successfully connected to the number being called.|
||The phone has been dialed and is attempting to connect.|
||The phone is currently dialing out to place the call.|
||The call has ended.|
||The call is in the process of being disconnected.|
||The call is currently on hold.|
||The call is entering a "hold" state.|
||The call is in the process of being received.|
||The call is returning from hold to an active state.|
This is a non standard implementation, but it is discussed at W3C as part of the System Application Working Group.
|Web Telephony API||Editor's Draft||Editor Draft (WIP).|
For obvious reasons, support is primarily expected on mobile browsers.
|Feature||Chrome||Firefox (Gecko)||Internet Explorer||Opera||Safari|
|Basic support||Not supported||Not supported||Not supported||Not supported||Not supported|
|Feature||Android||Firefox Mobile (Gecko)||IE Mobile||Opera Mobile||Safari Mobile|
|Basic support||Not supported||12.0 (12.0)||Not supported||Not supported||Not supported|