Places a phone call using the supplied country code, area code, phone number, and extension, waits for the call to complete, and returns a call progress result.
This method supports the phone class mechanism defined for the Node. For more information about phone classes, see the xMatters installation and administration guide.
@phone::makePhoneCall(String countryCode, String areaCode, String localNumber, String extension[, int callTimeOut])
CallProgressResult
For possible CallProgressResult values, see the @phone::makecall description.
The following example uses the phone class mechanism to determine the country code, area code, phone number, and extension to place a phone call and waits for it to complete.
$deviceFullTargetName = $targetName & "|" & $deviceTargetName
@device = @interaction::getRecipient($deviceFullTargetName)
$phone_number = $device.phoneNumber
$cc = $device.countryCode
$ac = $device.areaCode
$extension = $device.extension
$result = @phone::makePhoneCall($cc, $ac, $phone_number, $extension)