Skip to content

KAZOO Support Channels

This documentation is curated by 2600Hz as part of the KAZOO open source project. Join our community forums here for peer support. Only features in the docs.2600hz.com/supported space are included as part of our 2600Hz Support Services plan.

monster.util.getNumberFeatures()#

Syntax#

monster.util.getNumberFeatures(number);

Parameters#

Key Description Type Default Required
number A plain JavaScript object loosely representing a Kazoo phone number. Object true

Return value#

An Array that contains the list of feature codes that are available for the phone number. If no features are available, the array is empty.

Errors#

  • "number" is not an object: number is not a plain JavaScript object

Description#

This method returns the features available of a specific phone number object.

Examples#

Get a phone number available features#

var numberData = getNumberData('+14441234567');

// ...

monster.util.getNumberFeatures(numberData);
// output: [ 'cnam', 'e911']