Tropo is part of CiscoLearn More

duration

Set on a transfer only, this object relays the total duration (in milliseconds) of a transferred call, including the time spent ringing before the call was answered.

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);
    }
])