让真人在 Twilio 中接听电话
Make real people answer calls in Twilio
这个 Twilio 真的很棒。我只是有一个问题,我无法找到直接的答案。
twilio(传入和传出)中的所有呼叫都通过 webhooks.i 进行。e 您必须指定 URL 需要将传入呼叫重定向到哪个。假设,一旦对 twilio 号码的来电被重定向到 URL,URL 中定义的一组操作将作为对呼叫者的响应提供。
除此之外,真人是否可以接听 twilio 号码的来电。我已经知道 "dial" 动词,您可以在其中将呼叫重定向到不同的号码。我的确切问题是是否可以让真人直接在 twilio 号码中接听电话?
是的,真人可以接听 Twilio 来电。你这样做的方法是将该呼叫转发到真实人的真实 phone 号码。
这里是 Twilio 开发人员布道者。
您可以通过多种方式将来电转接到某人。
最简单的方法是为您的 phone 号码提供一个 URL,将呼叫定向到此人的真实 phone 号码。为此,您的 URL 需要 return 一些 TwiML,使用 <Dial>
and <Number>
来设置对 phone 的调用。像这样:
<Response>
<Dial>
<Number>PERSONS_PHONE_NUMBER</Number>
</Dial>
</Response>
但是,您已指定不希望重定向呼叫。您在这里有几个选择。你仍然需要使用<Dial>
,我们只是有一些其他的选择来设置如何设置用户接听电话的phone。
您可以使用 Twilio Client JS or the Programmable Voice SDK for Android or iOS. Once you have the client set up, you can then direct calls to it using the <Client>
元素构建软 phone:
<Response>
<Dial>
<Client>CLIENT_ID</Client>
</Dial>
</Response>
您可以为您的用户提供支持 phone 的 SIP 并使用 Twilio's SIP registration to register the phone. You can then direct the call to that phone using it's SIP address and the <Sip>
元素:
<Response>
<Dial>
<Sip>SIP_ADDRESS</Sip>
</Dial>
</Response>
如果你有 Twilio Wireless Sim card then you could direct the call to a phone with that sim card using <Sim>
:
<Response>
<Dial>
<Sim>SIM_ID</Sim>
</Dial>
</Response>
这些只是您可以将呼叫连接到用户的一些方式。希望对您有所帮助。
这个 Twilio 真的很棒。我只是有一个问题,我无法找到直接的答案。
twilio(传入和传出)中的所有呼叫都通过 webhooks.i 进行。e 您必须指定 URL 需要将传入呼叫重定向到哪个。假设,一旦对 twilio 号码的来电被重定向到 URL,URL 中定义的一组操作将作为对呼叫者的响应提供。
除此之外,真人是否可以接听 twilio 号码的来电。我已经知道 "dial" 动词,您可以在其中将呼叫重定向到不同的号码。我的确切问题是是否可以让真人直接在 twilio 号码中接听电话?
是的,真人可以接听 Twilio 来电。你这样做的方法是将该呼叫转发到真实人的真实 phone 号码。
这里是 Twilio 开发人员布道者。
您可以通过多种方式将来电转接到某人。
最简单的方法是为您的 phone 号码提供一个 URL,将呼叫定向到此人的真实 phone 号码。为此,您的 URL 需要 return 一些 TwiML,使用 <Dial>
and <Number>
来设置对 phone 的调用。像这样:
<Response>
<Dial>
<Number>PERSONS_PHONE_NUMBER</Number>
</Dial>
</Response>
但是,您已指定不希望重定向呼叫。您在这里有几个选择。你仍然需要使用<Dial>
,我们只是有一些其他的选择来设置如何设置用户接听电话的phone。
您可以使用 Twilio Client JS or the Programmable Voice SDK for Android or iOS. Once you have the client set up, you can then direct calls to it using the <Client>
元素构建软 phone:
<Response>
<Dial>
<Client>CLIENT_ID</Client>
</Dial>
</Response>
您可以为您的用户提供支持 phone 的 SIP 并使用 Twilio's SIP registration to register the phone. You can then direct the call to that phone using it's SIP address and the <Sip>
元素:
<Response>
<Dial>
<Sip>SIP_ADDRESS</Sip>
</Dial>
</Response>
如果你有 Twilio Wireless Sim card then you could direct the call to a phone with that sim card using <Sim>
:
<Response>
<Dial>
<Sim>SIM_ID</Sim>
</Dial>
</Response>
这些只是您可以将呼叫连接到用户的一些方式。希望对您有所帮助。