Determines whether the phone session is ready to be used and returns false if another phone session for the same user is in progress.
@interaction::isCallInProgress()
None
(Boolean) false if another phone session for the User is already in progress.
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