@interaction::isCallInProgress

Determines whether the phone session is ready to be used and returns false if another phone session for the same user is in progress.

Syntax:

@interaction::isCallInProgress()

Parameters:

None

Returns:

(Boolean) false if another phone session for the User is already in progress.

Example:

The following example checks to see if there is a call in progress and, if the phone session is busy, sets a WHILE loop to wait until the session ends:

$otherCallInProgress = @interaction::isCallInProgress()

while ($otherCallInProgress)

  @phone::play("phrase", "phone session not ready")

  sleep(10)

  $otherCallInProgress = @interaction::isCallInProgress()

endwhile