Feedback

  • Contents
 

IS_Event_PreviewTimeoutExpired

Definition

The IS_Event_PreviewTimeoutExpired event is a Predictive Event that is specifically designed for use with Preview campaigns that use a preview countdown timer. When a countdown timer is enabled for a Preview campaign, Dialer will send the IS_Event_PreviewTimeoutExpired event to a custom script to indicate that the time on the countdown timer has expired.

An IS_Event_PreviewTimeoutExpired event will only function when running a script on an Outbound Dialer Server. If you are running a script on a Manual Calling Server, which by default doesn't support the preview countdown timer feature, then the IS_Event_PreviewTimeoutExpired event will not function. The IS_Event_PreviewTimeoutExpired event can be present in a script, it just won't function because on a Manual Calling Server an agent must manually initiate a call by clicking a button.

Attributes

The IS_Event_PreviewTimeoutExpired event has two attributes that are passed in as argument objects.

InteractionId

This is a string that holds the ID of the preview call for which the timeout has expired.

Cancel

This is a Boolean flag that can be used to cancel the automatic placement of the preview call. Set it to true to cancel the automatic call.


Example

<head>
    <script language=javascript>
        var cancelPreview = false;
        function IS_Event_PreviewTimeoutExpired(args) {
            var id = args.InteractionId
            if (cancelPreview)
                args.Cancel = true;
            // insert other code here as needed...
        }
    </script>
</head>