Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Phone API Reference - Core - digium.phone.reject

digium.phone.reject

Description

Ignores (rejects) an incoming call before it is answered.

Basic Example: 

 digium.ohone.reject(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.

Parameters

Name

Required

Type

Default

Description

callHandle

Yes

string

Identifier of the call to act on. A call handle can be obtained by observing call events. Information such as this will be passed into the event object.

handler

No

function

Handler to register for the call. Executed whenever the call changes state.

  • No labels