使用 Twilio 的网站回调服务 [英] Callback service on the website using Twilio

查看:31
本文介绍了使用 Twilio 的网站回调服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我需要在网站上实现回调服务.我很好奇是否可以使用 Twilio 开发它.

Let's say I need to implement a callback service on a website. I'm curious if it's possible to develop it using Twilio.

例如,如果网站访问者从一侧提供他的手机号码,那么从另一侧我有一位经理使用他的网络 CRM 应用程序.是否可以:

For example, if a website visitor provides his mobile phone number from one side, from another side I have a manager using his web CRM application. Is it possible to:

  1. 给经理打电话(使用 WebRTC?)
  2. 当经理回复来电时,呼叫网站访问者(在他的手机上)
  3. 将双方联系在一起

我知道有很多现成的回调服务,我只是好奇它是如何工作的.

I know there are lots of ready-to-use callback services, I'm just curious how it works under the hood.

推荐答案

Twilio 开发人员布道者在这里.

Twilio developer evangelist here.

这是一项我们称之为点击通话的功能.以下是它如何与 Twilio 配合使用:

This is a feature we call Click to Call. Here's how it would work with Twilio:

  1. 访问者通过网站上的表格提供他的电话号码
  2. 使用 Twilio REST API 生成对经理的调用
  3. 当呼叫连接到经理时,拨打访客.
    • 这是使用 TwiML
    • 实现的
    • 呼叫连接后,Twilio 会向您在步骤 2 中提供的 URL 发出 HTTP 请求
    • 该 URL 需要使用 TwiML 进行响应,TwiML 是 XML 的一个子集,用于告诉 Twilio 如何处理调用
    • 在这种情况下,TwiML 将是 访客数量

这是它的高级视图,我们还有一个教程引导您使用 Twilio 进行点击通话(这是 Python 版本,但也有其他版本),我建议您看一看.

This is a high level view of it, we also have a tutorial walking you through Click to Call with Twilio (this is the Python version, but there are others available too) which I recommend you take a look at.

告诉我这是否有帮助.

这篇关于使用 Twilio 的网站回调服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆