J'essaie d'utiliser le Twilio Rest Api pour faire un appel sortant de/vers l'Allemagne. En outre, je veux utiliser la fonctionnalité MachineDetection Twilio offre (https://www.twilio.com/docs/api/rest/answering-machine-detection) Voici comment je l'ai essayé, mais cela ne fonctionne pas.Twilio Rest Api PHP - Détection de machine
...
try {
// Initiate a new outbound call
$call = $client->account->calls->create(
$toNumber, // Number to call.
$fromNumber, // Twilio Number
// URL Twilio will request when the call is answered.
array(
"url" => "http://pseudourl.com/manageCall.php",
"MachineDetection" => "Enable"
)
);
echo "Started call: " . $call->sid;
} catch (Exception $e) {
echo "Error: " . $e->getMessage();
}
...
Dans le fichier manageCall.php, je m'attends à obtenir ce qui suit, mais je ne le fais pas.
if (isset($_REQUEST['AnsweredBy']) && $_REQUEST['AnsweredBy'] == "human") {
...
}
Quelqu'un peut-il m'aider à utiliser correctement cette fonctionnalité?