Tropo is part of CiscoLearn More

reject

Rejects the incoming call. For example, an application could inspect the callerID variable to determine if the user is known, then reject the call accordingly.

Examples

  var callerID = currentCall.callerID;
log("Incoming call from: " + callerID);
if (callerID == "4075550100") 
    {
    reject();
    }
else
    say("You passed the test!");  
callerID = $currentCall.callerID
log 'Incoming call from: ' + callerID
if callerID == '4075550100'
    reject
else
    say "You passed the test!"
end
<?php
$callerID = $currentCall->callerID;
_log("Incoming call from: " . $callerID);
if ($callerID == "4075550100")
    {
    reject();
    }
else
    say("You passed the test!");
?>
callerID = currentCall.callerID
log("Incoming call from: " + callerID)
if callerID == "4075550100" :
    reject()
else :
    say("You passed the test!")
callerID = currentCall.callerID
log('Incoming call from: ' + callerID)
if(callerID == '4155550100') {
    reject()
}
else {
    say("You passed the test!")}