Twilio 网站如何运作?

发布于 2024-09-13 07:21:13 字数 180 浏览 3 评论 0原文

这里有来自 Twilio 的精彩推介。

我只是不明白他们如何通过网站做到这一点。如何使用网络浏览器控制固定电话?

There is a good pitch from Twilio here.

I just don't get how they can do that with a website. How can you control a land line with a web browser?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

丢了幸福的猪 2024-09-20 07:21:13

简短的回答:魔法蝴蝶。

更长的答案:Twilio 实际上并不直接从浏览器控制电话线。浏览器和手机之间有几个层。对于出站呼叫,其工作原理如下:

  • Web 浏览器向...发出请求...
  • 后端服务器技术(如 PHP/ASP.NET/Rails/etc)向...发出请求...
  • Twilio REST API,它调度...
  • Magic butterflies将呼叫连接到...
  • 被呼叫的人使用...
  • 您指定的 URL,使用简单的 TwiML/XML

对于入站调用,它的工作原理几乎相反:

  • 调用者连接到...
  • 神奇的蝴蝶,它们做自己的事情并做出...
  • 向 URL 发出 HTTP POST 请求您指定使用...
  • 将 TwiML/XML 返回到 Twilio 的后端服务器技术
  • 魔法蝴蝶处理将 TwiML 转换为发送回调用者的操作

在每种情况下,魔法蝴蝶代表一个可扩展的云通信基础设施,用于处理所有复杂的事务发送/接收电话和短信所需的电话内容,这样您就不必担心 GET、POST 和 XML 之外的任何内容,这些内容是您作为 Web 开发人员每天使用的内容。

Twilio 如何进行语音通话概述

使用 Twilio 发送/接收短信

如果您对其工作原理有任何其他疑问,请告诉我。我在 Twilio 工作:)

Short answer: magic butterflies.

Longer answer: Twilio isn't actually controlling a phone line directly from the browser. There are a few layers between the browser and your phone. For outbound calls it works something like this:

  • Web Browser makes requests to...
  • Back-end server technology (like PHP/ASP.NET/Rails/etc) makes requests to...
  • Twilio REST API which dispatches...
  • Magic butterflies to connect the call to...
  • The person being called using...
  • A URL you specify to direct the call using simple TwiML/XML

For inbound calls, it works pretty much in reverse:

  • A caller is connected to...
  • Magic butterflies which do their thing and make...
  • A HTTP POST request made to the a URL you specify using a...
  • Back-end server technology that returns TwiML/XML back to Twilio
  • Magic butterflies handle translating TwiML into actions sent back to the caller

In each case, the magic butterflies represent a scalable cloud communications infrastructure that handles all the complicated telephony stuff required to send/receive calls and text messages so that you don't have to worry about anything beyond GET, POST and XML, the stuff you're used to working with every day as a web developer.

Overview of How Twilio Works for voice calls

Sending/Receiving SMS with Twilio

If you have any other questions about how it works, let me know. I work at Twilio :)

回忆追雨的时光 2024-09-20 07:21:13

这是指向 Twilio 网站的更好链接。

他们使用他们的网站来销售服务。

他们使用互联网语音 (VOIP) 硬件或软件来交付他们的服务。

Here's a better link to the Twilio web site.

They use their website to sell the service.

They use voice over internet (VOIP) hardware or software to deliver their service.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文