• Skip to main content
  • Select language
  • Skip to search
mozilla
Mozilla Developer Network
  • Sign in
    • Persona
    • GitHub
  • Web Platform
    Technologies
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • APIs / DOM
    • Apps
    • MathML
    References & Guides
    • Learn the Web
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • ...more docs
  • Mozilla Docs
    • Add-ons
    • Firefox
    • Firefox Marketplace
    • Firefox OS
    • Persona
  • Developer Tools
  • Feedback
    • Get Firefox help
    • Get web development help
    • Join the MDN community
    • Report a content problem
    • Report a bug
  •  
B2G OS
    • No translations exist for this article.
    • Add a translation
  • Edit
  • Advanced
    • History
    • Print this article
  1. MDN
  2. Mozilla
  3. B2G OS
  4. Firefox OS APIs
  5. MozMobileCFInfo
Your Search Results

    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 overviewEdit

    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;
    };

    PropertiesEdit

    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

    MethodsEdit

    None.

    SpecificationEdit

    Not part of any specification.

    See alsoEdit

    • MozMobileNetworkInfo
    Share:
    • Twitter
    • Facebook
    • Google+

    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 11, 2016, 5:43:44 AM
    See also
    1. Mobile Connection API
    2. MozMobileCFInfo
    3. Properties
      1. action
      2. active
      3. number
      4. reason
      5. serviceClass
      6. timeSeconds
    4. Events
      1. icccardlockerror
      2. cardstatechange
    5. Related pages for Mobile Connection API
      1. CFStateChangeEvent
      2. DataErrorEvent
      3. IccCardLockError
      4. IccCardLockErrorEvent
      5. MozCellBroadcastEvent
      6. MozEmergencyCbModeEvent
      7. MozIccManager
      8. MozMobileCellInfo
      9. MozMobileConnection
      10. MozMobileConnectionInfo
      11. MozMobileICCInfo
      12. MozMobileNetworkInfo
      13. MozOtaStatusEvent
      14. MozStkCommandEvent
      15. Navigator.mozMobileConnections
      16. USSDReceivedEvent

    © 2005-2016 Mozilla Developer Network and individual contributors.

    Content is available under these licenses.

    • About MDN
    • Terms
    • Privacy
    • Cookies
    • Contribute to the code

    BESbswy
    BESbswy
    BESbswy
    BESbswy
    BESbswy
    BESbswy
    BESbswy
    BESbswy
    BESbswy
    BESbswy
    BESbswy
    BESbswy
    BESbswy
    BESbswy
    BESbswy
    BESbswy
    BESbswy
    BESbswy