Terminal Commands

At a glance
In a standard FreeClimb call flow, your application controls the duration of an active call by returning a PerCL script that ends with a terminal command. When configured with an actionUrl parameter, the terminal command prompts FreeClimb to request a new PerCL script from your server to continue call handling dynamically based on user interaction, allowing your application to decide when to end the call. If a script executes to completion without a terminal command containing an actionUrl to request more PerCL, FreeClimb triggers an implicit automatic hangup because there are no further instructions left to run.

What are PerCL terminal commands in FreeClimb call handling?

A terminal command should be the last command of a PerCL script. If a PerCL script does not have a terminal command as the last command, the call will simply be hung up. FreeClimb will ignore any commands in a PerCL script that follow a terminal command.

Terminal commands include an actionUrl as a parameter. This URL is invoked after the terminal command completes. The actionUrl is expected to return another PerCL script to execute on that call. This provides the application program a chance to make decisions based on information passed to it through the actionUrl and generate an appropriate PerCL script for continuation of the call.


Related Content