php - The Twilio API documentation says that Duration is the number of seconds of the completed call, but the value I am getting seems to be minutes billed -
in code snippet, $call_is_from , $recording match twilio call log, $duration small # seconds of completed call:
<?php require_once 'log_file.php'; $recording = $_request['recordingurl']; $call_is_from = $_request['call_from']; $duration = $_request['duration']; log_msg("$call_is_from\t$duration\t$recording"); ?>
as per the documentation, duration of call use callduration
parameter
$duration = $_request['callduration'];
Comments
Post a Comment