Phone API Reference - Core

Desk Phone API features described in this section are deprecated and supported only on the following models: D40, d45, d50, d60, d62, d65, d70

These core functions are available to all apps without requiring any libraries. They provide functionality to interact with the application environment, invoke phone functions, etc.

 

Name 

Description 

Name 

Description 

require

Used to include and evaluate other scripts. Anything exported by a required script is then made available using require.

exports

Object used to provide functions, variables, and properties for use by another script. Use require in another script to obtain the exports in the current script.

Exports will not work if you set exports = to an object (e.g., {"key" : "value" }). You must set properties of the exports object as can be seen in the example. 

digium

Handles application launching/hiding, system event listeners, phone functions, and file I/O.

digium.app

Contains methods and properties about the phone's applications.

digium.event

Used to create applications that register event listeners by calling digium.event.observe() and specifying one of the event names as the eventName parameter. Also used to trigger an event with digium.event.fire() and to remove callbacks for an event with digium.event.stopObserving().

digium.phone

Call handling.

Return to Documentation Home I Return to Sangoma Support