Twilio 開発者エバンジェリストはこちら。
通話中にダイヤルの timeLimit を変更する方法はありません。しかし、私はあなたのために働くことができる解決策を持っていると思います.
番号を直接ダイヤルする代わりに、timeLimit を使用して会議に参加することができます。
<Response>
<Dial timeLimit="30">
<Conference>YourCall</Conference>
</Dial>
</Response>
その後、アカウントが補充されたら、ライブ コールを変更して、新しい timeLimit で電話会議に再参加する TwiML URL にリダイレクトできます。
<?php
// Get the PHP helper library from twilio.com/docs/php/install
require_once('/path/to/twilio-php/Services/Twilio.php'); // Loads the library
// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "{{ sid }}";
$token = "{{ auth_token }}";
$client = new Services_Twilio($sid, $token);
// Get an object from its sid. If you do not have a sid,
// check out the list resource examples on this page
$call = $client->account->calls->get("{{call sid}}");
$call->update(array(
"Url" => "http://youserver.com/conference.xml",
"Method" => "POST"
));
echo $call->to;