Last active
December 17, 2015 18:49
-
-
Save hunnycode/5655616 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require("Services/Twilio.php"); | |
$response = new Services_Twilio(); | |
$to = $_POST["To"]; | |
$from = $_POST["From"]; | |
$callSid = $_POST["CallSid"]; | |
$callStatus = $_POST["CallStatus"]; | |
$voicetext = "受信元の電話番号は ".$from."です。発信元の電話番号は".$to."です。この通話のコールキーは ".$callSid."です。通話状態は ".$callStatus."です。Twilioはこのようにリアルタイムで履歴を取得することが可能です。"; | |
$response->say($voicetext, array('language' => 'ja-jp')); | |
print $response; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment