Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

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.phone.dial

 

Description

Initiates a call. This function returns a call handle, which is a string identifying the call. It can be used in various other methods such as digium.phone.hangup.

 
Basic Example: 

Code Block
digium.phone.dial(parameters);

If a function is passed in the handler parameter, that function is called with a call status object to notify of state changes to the phone call.

...

digium.phone.dial with util.debug for state of the call

Code Block
digium.phone.dial({
    'number' : 100,
    'handler' : function (obj) {
        util.debug(obj.state);  //prints the 'state' of the call
    }
});