Twilio Rest Api PHP - Machine Detection -


i trying use twilio rest api make outgoing call from/to germany. furthermore want use machinedetection feature twilio offers (https://www.twilio.com/docs/api/rest/answering-machine-detection) how tried it, doesnt work.

   ...       try {         // initiate new outbound call         $call = $client->account->calls->create(           $tonumber, // number call.           $fromnumber, // twilio number           // url twilio request when call answered.           array(             "url" => "http://pseudourl.com/managecall.php",             "machinedetection" => "enable"           )         );         echo "started call: " . $call->sid;       } catch (exception $e) {         echo "error: " . $e->getmessage();       }    ... 

in managecall.php file expect following, dont.

if (isset($_request['answeredby']) && $_request['answeredby'] == "human") {   ... } 

can me out how use feature right?

twilio developer evangelist here.

twilio's answering machine detection supports calling us, canada, united kingdom, netherlands, finland , sweden. documentation says if looking use amd in country, such germany, please contact support , add backlog.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -