通过 GSM 调制解调器进行语音通话

发布于 2024-11-30 09:00:57 字数 512 浏览 4 评论 0原文

我想使用 GSM 调制解调器对电话号码进行语音呼叫,播放录制的消息,等待按下数字,然后断开呼叫。系统需要知道线路是否占线、用户是否应答以及用户按下了哪个数字(如果有)。如果 30 秒内没有按下任何按钮,它应该会掉线。如果用户在问题完成之前按下数字,则语音应该停止(用户不必等待)。另外,如果系统能够处理无效数字(播放“无效数字”消息,播放原始消息并等待输入),那就太好了。并行多个调用会很好,但我想这是不可能的?

我发现这篇文章很好地解释了低级接口。然而,这个问题更加务实——您会推荐哪些库和哪种 GSM 调制解调器?操作系统是Linux,调制解调器可以是RS232或USB。我更喜欢Python,但C(++)也可以。

顺便说一句:这不是电话营销,而是一个通知系统。这并不重要...;)

编辑:我了解到该系统通过关键字“IVR”(为未来的搜索者添加)而闻名。

I would like to use a GSM modem to make a voice call to a phone number, play a recorded message, wait for a digit to be pressed and then disconnect the call. The system needs to know if the line was busy, if the user answered and which digit was pressed by user (if any). It should drop the line if nothing is pressed in 30 seconds. If user presses the digit before the question is completed then the voice should stop (user doesn't have to wait). Also, it would be nice if system could handle invalid digits (play "invalid digit" message, play original message and wait for input). Multiple calls in parallel would be nice, but I guess this is not possible?

I have found this article which explains low-level interface quite nicely. However, this question is more pragmatic - which libraries and which GSM modem would you recommend? OS is Linux, modem can be either RS232 or USB. I would prefer Python, but C(++) is ok too.

BTW: this is not telemarketing, it is a notification system. Not that it matters... ;)

EDIT: I learned this system is known by keyword "IVR" (added for future searchers).

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

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

发布评论

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

评论(2

臻嫒无言 2024-12-07 09:00:57

调制解调器通常用于数据传输,但听起来您实际上是在传输语音,尽管是预先录制的语音和音调。

虽然您可以使用您已经确定的语音调制解调器的额外语音功能来实现此目的,但实际上使用 GSM 转 VoIP 网关可能更容易,除非您出于某种原因实际上需要调制解调器数据功能。

您可以将 VoIP 转 GSM 网关连接到低成本或免费的开源 PABX(例如 Asterisk),并使用它来构建您的特定应用程序。

有些网关甚至支持多个 SIMS,因此您可以定位为您所拨打的号码提供最低通话费率的 SIM 卡 - 例如,如果您知道您要拨打的号码位于特定运营商,那么该运营商可能会提供免费的“ SIM 卡之间的网络通话。如果您预计要拨打大量电话,这可能是一个优势。

如果您在网络上搜索“VoIP GSM 网关”,您会找到一些示例。

以下链接还提供了概述:
http://www.voip-info.org/wiki/view/VOIP +GSM+网关

A modem is generally used for data transmission but it sounds like you are actually transmitting voice, albeit prerecorded voice, and tones.

Although you can achieve this with the extra voice capability of a voice modem as you have identified, it might actually be easier to use a GSM to VoIP gateway, unless you actually need the modems data capability for some reason.

You could connect the VoIP to GSM gateway to a low cost or free open source PABX (such as Asterisk) and use this to build your particular application.

Some gateways even support multiple SIMS so you can target the SIM which gives the lowest call rate for the number you are calling - for example if you know that the number you want to call is on a particular operator, then that operator may offer free 'on network' calls between it's SIMs. This might be an advantage if you are expecting to make a large number of calls.

If you do a web search for 'VoIP GSM gateways' you will find some examples.

The following link provides an overview also:
http://www.voip-info.org/wiki/view/VOIP+GSM+Gateways

故人如初 2024-12-07 09:00:57

我不是这个领域的专家,但这是我想深入研究的个人项目。

我认为这是最好的方法。

  • 1 为自己准备一个 VOIP GSM 网关,如下所示:VOIP+GSM+Gateways
  • 2 链接到现有的 PABX 系统或下载免费的系统,例如 asterisk

然后您需要按照 PABX 开发的说明来创建您的拨号计划和路由。我不知道是否已经存在,但我相信您会找到许多您需要的零碎示例。

I am no expert in this field but it is something of a personal project that I have wanted to dive into.

Here is what I think will be the best way to do this.

  • 1 Get yourself a VOIP GSM Gateway like this: VOIP+GSM+Gateways
  • 2 Link into an existing PABX system or download a free one like asterisk

Then you will need to follow the instructions of the PABX development to create your dial plans and routing. I don't know if there are any already out there but I'm sure you will find many examples of the bits and pieces you need.

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