在14.04 E303通过华为调制解调器拨打电话的方式

我有一个huawei e303 u调制解调器,我按照这个链接的指南。 除了调用function外,一切正常。

呼叫转到另一端但没有声音,反之亦然。

我的意思是,当有人打电话给我时,它会显示在仪表板上。 当我收到时,两端都没有声音。 我的意思是,余额扣除,计时器显示仪表板上的通话时长。 但接收或发送端没有声音。

这就是我使用AT命令从Ubuntu zesty上的华为调制解调器K3772拨打电话的方式。语音正常,我也可以接听电话。 我假设您的调制解调器具有语音function,可以在Windows中调用Mobile Partner

  1. 将您的加密狗插入PC并应由网络管理器小程序检测

2.找出调制解调器的各个端口:

ls /dev/ttyU* 

通常,对话端口(即第一个端口)是/ dev / ttyUSB0,音频端口(即第二个端口)是/ dev / ttyUSB1,而sms&internet又名数据端口(即第三个端口)是/ dev / ttyUSB3

  1. 安装picocom:

sudo apt安装picocom

  1. 在对话端口启动picocom:

sudo picocom -c / dev / ttyUSB0

-c表示本地回显,在您键入时使AT命令可见

找到调制解调器支持的音频样本格式:

 AT^CVOICE? 

响应为0,8000,16,10意味着速率为8000hz

打开另一个终端并启用音频:

 sudo cat /dev/ttyUSB1 | aplay -f S16_LE 

打开另一个终端并启用麦克风:

sudo arecord -f S16_LE / dev / ttyUSB1

音频样本格式,S16_LE是’签名16位小尾数’,速率8000赫兹,单声道取决于AT ^ CVOICE的响应? 其他调制解调器可能需要S16_BE

回到第一个终端并拨打号码:

 ATDxxxxxxxxxx; 

例如:ATD024698xxxx; 或ATD100;

从相同的对话终端他路由音频:

 AT^DDSETEX=2 

你现在应该听到扬声器的声音,你也可以对着麦克风讲话

完成通话后,您可以挂断:

 AT+CHUP 

如果你想让你的调制解调器在线,这样你就可以收到电话,然后保持两个终端打开你可以接听电话

 ATA 

然后是AT^DDSETEX=2以启用声音
要停止picocom: ctrl+a后跟ctrl+x

mmcli开发人员正试图在ModemManager中实现它。我认为工作仍在继续。 也许modem-manager-gui也可能有一天会实现语音

提示: – 如果您听到刮擦声而不是人声, 请将 S16_LE更改为S16_BE 。这是样本格式。 其他样本格式可以从aplay --help获得

参考: mmcli华为语音

我有几乎相同的问题,使用e173调制解调器。

在Windows 7下,声音最有效。

第一个答案,当然:擦除unbuntu并安装win7 – 它只是工作。

 (My setup is Fujitsu T580 4g i5 dual boot, Ubuntu 14.04 xubuntu 32bit Saga_of_Fail) The problem is exclusively the sound interface - it does not seem to exist. In the source code there is no mention of whether this is still looking for ALSA or ? The fact that the code is such a horribly mangled mess explains why they abandoned it. Their later windows efforts abandon even trying to use voice calls. lots of binary blobs come with the Mobile Partner along with barn-door sized security holes like the sudoers edit ALL ALL=(ALL) NOPASSWD:ALL (I kid you not, go look: /etc/sudoers And there is also that autoupdate thingy which is doing what, precisely ? 

现实是:

 Nobody (aside from you, me and handful of other strange personas) in linux-land wants a simple modem dialer. All other answers involve proprietary code (see talk.maemo.org for an earful) and or other seriously rube-goldberg type solutions If you doubt that just ask how Ubuntu-touch gets theirs - depressingly complicated !) 

(我试过freeswitch,请不要提到安装星号

只是打个简单的录音电话。 我试过freeswitch。 代码编译,但……

 (I had a serious nightmare after the freeswitch install, so very, very weird) I think that the only other solution is to git the code for the python dialer https://github.com/climberhunt/PiPhone from the piphone project and rewrite it. To match your specific modem (as I am trying to do in my spare time) 

干杯,如果你以其他方式修复它,请告诉我们。