Tropo is part of CiscoLearn More

redirect

This is used to deflect the call to a different third party SIP address. This function must be called before the call is answered, so for active calls, transfer is best.

Parameters

destination

String
(Required)

The new SIP destination for the incoming call as a URL: sip:9991436228@sip.tropo.com

Only SIP destinations are allowed. An error will occur if a telephone number is used.

Examples

  if (currentCall.callerID == "user01") {
    say("Hello, world!");
    }
else {
    redirect("sip:user02@221.122.54.86");
    }  
if $currentCall.callerID == "user01"
    say 'Hello, world!'
else
    redirect 'sip:user02@221.122.54.86'
end
<?php
if ($currentCall->callerID == "user01") {
    say("Hello, world!");
    }
else {
    redirect("sip:user02@221.122.54.86");
    }
?>
if (currentCall.callerID == "user01"):
    say("Hello, world!")
else:
    redirect("sip:user02@221.122.54.86")
if(currentCall.callerID == "user01") 
    {
    say("Hello world!")
    } 
else {
    redirect("sip:user02@221.122.54.86")
    }