0
我從我的前端代碼角這樣的發送參數的響應,Twilio我如何找到人/機答案,還可以得到使用PHP
var params = {"PhoneNumber": Ph};
Twilio.Device.connect(params, {"Record": true, "IfMachine": 'Continue'});
現在,我如何獲得通話出席的響應通過機器或人的身份我需要得到呼叫的迴應?
我從我的前端代碼角這樣的發送參數的響應,Twilio我如何找到人/機答案,還可以得到使用PHP
var params = {"PhoneNumber": Ph};
Twilio.Device.connect(params, {"Record": true, "IfMachine": 'Continue'});
現在,我如何獲得通話出席的響應通過機器或人的身份我需要得到呼叫的迴應?
泰米爾語,我寫了一個文章,解釋如何,我們建議去這個使用<Gather>
和PHP的例子:
<?php
# Include Twilio PHP helper library.
require "/path/to/twilio-php/Services/Twilio.php";
# Create response object.
$response = new Services_Twilio_Twiml();
$response->say("Hello, press any key to hear a top secret message.");
$gather = $response->gather(array(
'action' => "YOUR_TWIML_BIN"
));
$response->say("You did not reveal yourself to be human. Goodbye!");
print $response;
?>