Phone API Reference - Core - digium
Desk Phone API features described in this section are deprecated and supported only on the following models: D40, d45, d50, d60, d62, d65, d70
digium
Handles application launching/hiding, system event listeners, phone functions, and file I/O.
Â
Methods
Name | Description |
---|---|
Puts the app in the background, returning the screen to its regular state (e.g., idle). | |
Brings an app into the foreground. If this is called without any arguments, it brings the current app to the foreground. | |
Reads the contents of a file as utf-8 and returns the contents as a string. The filename is relative to the location that is specified (this is a flat directory). | |
Resets the timeout that causes the phone to hide apps when there's no keyboard input for a while. This keeps the app alive and should be called periodicallly to prevent the app from being timed out. | |
Indicates to the app to reboot itself. | |
This function can be used to change the state of one of the phone's LED lights. | |
Writes the string into a file. The filename is relative to the location that is specified (this is a flat directory). |
Â
Properties
Name | Description |
---|---|
digium.phoneModel | This property is set to a string that represents the model of the phone (D40, D45, D50, D60, D62, D65, D70). |
Â