Skip to end of metadata
Go to start of metadata

digium.phone.answer

Description

Answers an incoming call.

 

Basic Example: 

 

 

 

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

 

NameRequiredTypeDefaultDescription
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.

 

Examples

digium.phone.answer with util.debug to print call state


  1.  


  • No labels