调用网站并使用php来识别来电显示
我有一个想法,我想让某人用手机拨打电话号码,然后网站会显示他们的来电显示。我想在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最近推出了一些服务,允许您使用 API 接听电话:
这些可能比尝试实际接收更容易打电话给自己。
如果您选择使用调制解调器,那么您显然需要它的驱动程序,并针对这些驱动程序公开的任何 API 进行编程。
无论哪种方式,您都需要一种方法将电话呼叫链接到网站上的会话 - 也许为每个访问者生成一个唯一的号码,或者让他们在呼叫时输入一系列数字。然后,工作流程将类似于
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