建立&在 PHP 中通过 GSM 调制解调器接听电话

发布于 2024-10-28 13:06:39 字数 322 浏览 2 评论 0原文

我有一个基于 php 构建的 CRM(客户关系管理软件)并在本地主机(Windows XP 系统)上运行。这包含我的客户列表。我希望能够直接从我的 CRM 致电这些客户并保留相同的日志。 (通话时间、通话时长和通话录音)。对于来电,我应该能够将其链接到我的 CRM、显示客户详细信息并记录数据。

我有一个支持语音的 3G GSM 调制解调器(带 USB 连接器),可用于此目的。从我的搜索中,我了解到我需要从 PHP 发送 AT 命令才能与调制解调器交互。但我无法继续前进,因为我对此完全陌生。在此之前我从未做过任何设备接口。

您能帮我了解如何解决上述问题吗?这方面的任何线索、资源都会有很大帮助。

I am having a CRM (Customer Relationship Management Software) built on php and running it on localhost (windows XP system). This contains the list of my clients. I want to be able to call these clients directly from my CRM and keep a log of the same. (Call time, call duration and record the calls). For incoming calls, I should be able to link it to my CRM, display the client details and log the data.

I have a voice enabled 3G GSM Modem (with USB connector) which can be used for this purpose. From my search, I understand I would need to send AT commands from PHP to interact with the modem. But I am not able to move ahead as I am completely new to this. I have never done any device interfacing before this.

Can you help me to understand how can I go about solving the above issue? Any leads, resources in this direction will be of great help.

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

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

发布评论

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

评论(1

咽泪装欢 2024-11-04 13:06:40

我不会尝试使用纯 PHP 来做到这一点,因为那样你就必须通过网络服务器与硬件建立 PHP 接口,如果它是可管理的,这可能会很痛苦。我认为有(编辑)三个选项:

1:又名困难的方法:
用 C 语言编写一个 PHP 扩展来完成您想要的操作,但这意味着要为相对较小的任务进行大量编程。

2:eas[y/ier]方式:
找到一个可以与调制解调器进行语音通信并具有 API 或 CLI 的程序(也许是 Skype?),以便您可以运行 PHP:
voiceprogram.exe --call=555-000-5555 --saveTo=client1_20113103_1200.mp3
这允许应用程序做它擅长的事情并且只使用 PHP 作为控制器。生成的 MP3(或 Wav、OGG 等)可以保存回 CRM。

3:其他选项
如果您能够使用能够轻松与调制解调器通信的不同语言进行编程,您可以编写一些可由 PHP(套接字/SOAP/CLI)触发并处理调用的自定义代码。完成后,它可以将调用信息“POST”回您的 PHP 脚本。

前 2 个解决方案仅当 CRM 在本地主机上运行时才有效,如果您计划在共享网络环境中使用它,复杂性将会上升。最后一个选项如果正确完成,可以在共享环境中使用。

I wouldn't try to do this with pure PHP since then you would have to have PHP interface with the hardware through the webserver, which can be a pain, if it is manageable at all. There are (edit) three options in my view:

1: AKA the hard way:
Write a PHP extension in C that does what you want, but this would mean a lot of programming for a relative small task.

2: The eas[y/ier] way:
Find a program (Maybe Skype?) that can do voice communication with your modem and has an API or a CLI so you can make PHP run:
voiceprogram.exe --call=555-000-5555 --saveTo=client1_20113103_1200.mp3
This allows the application to do what it's good as and only use PHP as the controller. The resulting MP3 (or Wav, OGG, etc) can be saved back to the CRM.

3: Other options
If you are able to program in a different language that does communicate easily with your modem you can write some custom code that can be triggered by PHP (sockets/SOAP/CLI) and handles the call. When finished it can 'POST' the call information back to your PHP script.

The first 2 solutions only work when the CRM runs on localhost, if you plan on using this in a shared network environment complexity will go up. The last option, if done correctly, can be used in a shared environment.

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