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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -