2017-09-10 3 views
0

Twilio Rest API를 사용하여 독일에서 /로 전화를 거는 중입니다. 또한 MachineDetection 기능을 사용하고 싶습니다. Twilio는 (https://www.twilio.com/docs/api/rest/answering-machine-detection) 을 시도했습니다.이 방법을 사용해 보았지만 작동하지 않았습니다.Twilio Rest Api PHP - 기계 감지

... 
     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(); 
     } 
    ... 

manageCall.php 파일에서 다음을 얻으려고하지만 나는 그렇지 않습니다.

if (isset($_REQUEST['AnsweredBy']) && $_REQUEST['AnsweredBy'] == "human") { 
    ... 
} 

누구든지 기능을 올바르게 사용하는 방법을 알려 줄 수 있습니까?

답변