Tropo is part of CiscoLearn More

connectedDuration

Set on a transfer only, this object provides duration (in miliseconds) of a transferred call, starting from when the destination leg answers.

Examples

  say("Please wait while we transfer your call.");
transfer("+14074095231", {
    playvalue: "http://www.phono.com/audio/holdmusic.mp3",
    onSuccess: function(event) {
        log("******************** " + event.duration + " and " + event.connectedDuration + " ********************");
    }
});  
say "Please wait while we transfer your call."
transfer "+14074095231", {
    :playvalue => "http://www.phono.com/audio/holdmusic.mp3",
    :onSuccess => lambda { |event|
        log "******************** #{event.duration} and #{event.connectedDuration} ********************"}
}
<?php
say("Please wait while we transfer your call.");
$event = transfer("+14074095231", array(
    "playvalue" => "http://www.phono.com/audio/holdmusic.mp3",
    "onSuccess" => "successFCN"
    )
);
function successFCN($event) {
    _log("******************** ".$event->duration." and ".$event->connectedDuration." ********************");
    }
?>
say("Please wait while we transfer your call.")
transfer("+14074095231", {
    "playvalue":"http://www.phono.com/audio/holdmusic.mp3", 
    "onSuccess": lambda event : log("******************** " + str(event.duration) + " and " + str(event.connectedDuration) + " ********************")})
say("Please wait while we transfer your call.")
transfer("+14074095231", [
    playvalue: "http://www.phono.com/audio/holdmusic.mp3",
    onSuccess: { event->
        log("******************** " + event.duration + " and " + event.connectedDuration + " ********************");
    }
])