我们使用以下api拨打电话。我们可以在From参数中使用SIP地址来使用SIP中继。
$call = $client->calls->create(
"+1XXXXXXXXXX", "+1XXXXXXXXXX",
array("url" => "http://demo.twilio.com/docs/voice.xml")
);
答案 0 :(得分:0)
Twilio开发者传道者在这里。
拨打电话时,您无法提供SIP地址作为From参数。 The documentation describes the required parameters for a call as:
Parameter Description
From The phone number or client identifier to use as the caller id.
If using a phone number, it must be a Twilio number or a Verified
outgoing caller id for your account.
To The phone number, SIP address or client identifier to call.
因此,您只能使用电话号码或客户端标识符。 To
参数可以是SIP地址,因此您可以从API拨打SIP地址,而不是从一个地址。
如果您使用SIP中继,则需要通过SIP发起呼叫。