<?php
$options = array(
"StatusCallback" => 'http://173.203.104.63/call/out/log-callback.php? id='.$id
);
$client = new Services_Twilio($sid, $token, $version);
try {
// Initiate a new outbound call
$call = $client->account->calls->create(
$phonenumber, // The number of the phone initiating the call
$cphonenumber, // The number of the phone receiving call
'60',
'http://173.203.104.63/call/out/three.php?id='.$id, // The URL Twilio will request when the call is answered
$options
);
...
在這裏,我已經建立了網址爲statuscallback但我不知道天氣是重定向或不以及如何獲得該網址如何使用StatusCallback網址在twilio
嗨,'StatusCallback' URL會只有在通話完成時纔會被請求。您應該使用Url在呼叫連接時請求該URL。您應該能夠知道調試器中請求了哪個URL。 – 2012-03-20 18:49:29