调用网站并使用php来识别来电显示

发布于 2024-09-02 23:21:51 字数 150 浏览 3 评论 0原文

我有一个想法,我想让某人用手机拨打电话号码,然后网站会显示他们的来电显示。我想在 php 中做到这一点,但我真的不知道如何做。我非常擅长 PHP,并且我假设您需要某种连接到 Web 服务器的 GSM 调制解调器来接受来电,但这确实是我所能得到的。如果有人能指出我正确的方向,那就太好了。

I have this idea where I want to allow someone to call a phone number from their cell phone, and then a website would display their caller ID. I want to do this in php, but I'm really not sure how. I'm pretty good with PHP and I'm assuming you need some kind of GSM modem attached to the web server to accept the incoming phone calls, but that's really as far as I can get. If anyone can point me in the right direction that would be great.

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

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

发布评论

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

评论(1

昔梦 2024-09-09 23:21:51

最近推出了一些服务,允许您使用 API 接听电话:

这些可能比尝试实际接收更容易打电话给自己。

如果您选择使用调制解调器,那么您显然需要它的驱动程序,并针对这些驱动程序公开的任何 API 进行编程。

无论哪种方式,您都需要一种方法将电话呼叫链接到网站上的会话 - 也许为每个访问者生成一个唯一的号码,或者让他们在呼叫时输入一系列数字。然后,工作流程将类似于

  1. 用户访问网站
  2. 网站生成会话 ID,提供用户电话号码
  3. 用户响铃号码
  4. 由 cloudvox/twilio API 或调制解调器驱动程序执行的呼叫处理软件/脚本/等
  5. 呼叫映射到会话(通过输入的号码、电话号码等)
  6. 来电显示与网站会话相关联
  7. 用户刷新网站或网站自动刷新
  8. 网站向用户显示来电显示

There are a couple of services that launched recently which allow you to accept phone calls using an API:

These are probably easier than trying to physically receive the phone calls yourself.

If you went for using a modem then you'd obviously need drivers for it and to program against whatever API those drivers exposed.

Either way, you're going to need a way to link the phone call to the session on the website - maybe generating a unique number for each visitor, or by getting them to input a sequence of digits when they call. The workflow would then look something like

  1. User visits website
  2. Website generates session ID, provides user phone number
  3. User rings number
  4. Call-handling software/script/etc executed by cloudvox/twilio API or modem drivers
  5. Call is mapped to a session (by inputted number, phone number, etc)
  6. Caller ID is associated with website session
  7. User refreshes website or website auto-refreshes
  8. Website displays Caller ID to user
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文