@phone::makecall

Places a phone call by dialing the dial string and waiting for the call to complete, and returns a call progress result.

In previous editions of this documentation, this method was listed as @phone::makeCall. The correct usage is @phone::makecall; note the lower case "c".

Syntax:

@phone::makecall(String dialString[, int callTimeOut])

Parameters:

Returns:

CallProgressResult

Possible CallProgressResult values are:

Note that not all Dialogic cards support all error messages. For example, if the call cannot detect a dial tone, you may receive an error message of "NO_RINGBACK" if the card does not support a "NO_DIAL_TONE" error.

When dialing extensions, SIP calls will return only VOICE_DETECT or MACHINE_DETECT progress results.

Example:

The following example formats a dial string, places a phone call and waits for it to complete

$dialString = @phone::formatDialstring()

$result = @phone::makecall($dialString)