通过GSM调制解调器进行语音通话 [英] Voice call through GSM modem

查看:242
本文介绍了通过GSM调制解调器进行语音通话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用GSM调制解调器对电话号码进行语音呼叫,播放录制的消息,等待数字被按下然后断开呼叫.系统需要知道线路是否繁忙,用户是否应答以及用户按下了哪个数字(如果有).如果在30秒内未按任何操作,则该行应下降.如果用户在问题完成前按数字,则声音应停止(用户不必等待).同样,如果系统可以处理无效数字(播放无效数字"消息,播放原始消息并等待输入)会很好.并行进行多个调用会很好,但是我想这不可能吗?

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?

我发现这篇文章,它很好地解释了低级界面.但是,这个问题更为实用-您会推荐哪个库和哪个GSM调制解调器?操作系统是Linux,调制解调器可以是RS232或USB.我更喜欢Python,但C(++)也可以.

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... ;)

编辑:我了解到该系统通过关键字"IVR"(为以后的搜索者添加)而闻名.

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

推荐答案

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

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

尽管您可以使用已确定的语音调制解调器的额外语音功能来实现此目的,但是使用GSM到VoIP网关实际上可能会更容易,除非出于某些原因实际上需要调制解调器的数据功能.

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.

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

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.

某些网关甚至支持多个SIMS,因此您可以将SIM卡定位为给所呼叫号码提供最低呼叫率的SIM卡-例如,如果您知道要呼叫的号码在特定运营商上,则该运营商可能会在SIM卡之间提供免费的网络"通话.如果您希望拨打大量电话,这可能是一个优势.

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.

如果您在网络上搜索"VoIP GSM网关",则会找到一些示例.

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

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

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

这篇关于通过GSM调制解调器进行语音通话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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