Skip to content

Instantly share code, notes, and snippets.

@hunnycode
Last active December 17, 2015 18:49
Show Gist options
  • Save hunnycode/5655616 to your computer and use it in GitHub Desktop.
Save hunnycode/5655616 to your computer and use it in GitHub Desktop.
<?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