mozilla
Your Search Results

    TelephonyCall.state

    This article is in need of a technical review.

    Non-standard
    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.

    This API is available on Firefox OS for internal applications only.

    Summary

    Returns the current state of the phone call. Read only.

    Syntax

    var state = window.navigator.mozTelephony.state;
    

    Value

    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.

    State String Description
    alerting ???
    busy The number that was dialed for this call is busy.
    connected The phone has successfully connected to the number being called.
    connecting The phone has been dialed and is attempting to connect.
    dialing The phone is currently dialing out to place the call.
    disconnected The call has ended.
    disconnecting The call is in the process of being disconnected.
    held The call is currently on hold.
    holding The call is entering a "hold" state.
    incoming The call is in the process of being received.
    resuming The call is returning from hold to an active state.

    Specifications

    This is a non standard implementation, but it is discussed at W3C as part of the System Application Working Group.

    Specification Status Comment
    Web Telephony API Editor's Draft Editor Draft (WIP).

    Browser compatibility

    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

    See also

    Document Tags and Contributors

    Contributors to this page: Sheppy, kscarfone, kollishivagangadhar, fscholz, Jeremie
    Last updated by: fscholz,