• Skip to main content
  • Select language
  • Skip to search
MDN Web Docs
  • Technologies
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs / DOM
    • WebExtensions
    • MathML
  • References & Guides
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
B2G OS
  1. MDN
  2. Archive of obsolete content
  3. B2G OS
  4. B2G OS APIs
  5. MozMobileCFInfo

MozMobileCFInfo

In This Article
  1. Interface overview
  2. Properties
    1. Constants
  3. Methods
  4. Specification
  5. See also

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

The MozMobileCFInfo interface defines options used to retrieve or define call forwarding settings.

See MozMobileConnection.getCallForwardingOption() and MozMobileConnection.setCallForwardingOption() to see how to set and get call forwarding options.

Interface overview

interface MozMobileCFInfo
{
  const long CALL_FORWARD_ACTION_DISABLE = 0;
  const long CALL_FORWARD_ACTION_ENABLE = 1;
  const long CALL_FORWARD_ACTION_QUERY_STATUS = 2;
  const long CALL_FORWARD_ACTION_REGISTRATION = 3;
  const long CALL_FORWARD_ACTION_ERASURE = 4;
  const long CALL_FORWARD_REASON_UNCONDITIONAL = 0;
  const long CALL_FORWARD_REASON_MOBILE_BUSY = 1;
  const long CALL_FORWARD_REASON_NO_REPLY = 2;
  const long CALL_FORWARD_REASON_NOT_REACHABLE = 3;
  const long CALL_FORWARD_REASON_ALL_CALL_FORWARDING = 4;
  const long CALL_FORWARD_REASON_ALL_CONDITIONAL_CALL_FORWARDING = 5;
  readonly attribute unsigned short action;
  readonly attribute bool active;
  readonly attribute DOMString number;
  readonly attribute unsigned short reason;
  readonly attribute unsigned short serviceClass;
  readonly attribute unsigned short timeSeconds;
};

Properties

MozMobileCFInfo.action Read only
A number that indicates what to do with the rule.
MozMobileCFInfo.active Read only
A boolean that indicates the call forwarding rule status, either active (true) or not active (false).
MozMobileCFInfo.number Read only
A string that indicates the phone number of the forwarding address.
MozMobileCFInfo.reason Read only
A number that indicates the reason the call is being forwarded.
MozMobileCFInfo.serviceClass Read only
A number that represents the service for which the call forward is set up.
MozMobileCFInfo.timeSeconds Read only
A number representing the time in seconds to wait before a call is forwarded.

Constants

Call forward possible actions:

  • CALL_FORWARD_ACTION_DISABLE
  • CALL_FORWARD_ACTION_ENABLE
  • CALL_FORWARD_ACTION_QUERY_STATUS
  • CALL_FORWARD_ACTION_REGISTRATION
  • CALL_FORWARD_ACTION_ERASURE

Call forward possible reasons:

  • CALL_FORWARD_REASON_UNCONDITIONAL
  • CALL_FORWARD_REASON_MOBILE_BUSY
  • CALL_FORWARD_REASON_NO_REPLY
  • CALL_FORWARD_REASON_NOT_REACHABLE
  • CALL_FORWARD_REASON_ALL_CALL_FORWARDING
  • CALL_FORWARD_REASON_ALL_CONDITIONAL_CALL_FORWARDING

Methods

None.

Specification

Not part of any specification.

See also

  • MozMobileNetworkInfo

Document Tags and Contributors

Tags: 
  • API
  • DOM
  • Firefox OS
  • Mobile
  • Non-standard
  • Reference
  • Référence
 Contributors to this page: chrisdavidmills, teoli, MHasan, kscarfone, Sheppy, Jeremie
 Last updated by: chrisdavidmills, Feb 27, 2017, 2:08:02 AM
See also
  1. Mobile Connection API
  2. Archive
  3. Events
    1. icccardlockerror
    2. cardstatechange
  4. Related pages for Mobile Connection API
    1. CFStateChangeEvent
    2. DataErrorEvent
    3. IccCardLockError
    4. IccCardLockErrorEvent
    5. MozCellBroadcastEvent
    6. MozEmergencyCbModeEvent
    7. MozIccManager
    8. MozMobileCFInfo
    9. MozMobileCellInfo
    10. MozMobileConnection
    11. MozMobileConnectionInfo
    12. MozMobileICCInfo
    13. MozMobileNetworkInfo
    14. MozOtaStatusEvent
    15. MozStkCommandEvent
    16. USSDReceivedEvent