way to call through Huawei Modem in 14.04 E303

I have a huawei e303 u modem, I followed a guide from this link. Everything is working except calling features.

Call goes to other end but no voice OR vice versa.

I mean , when somebody calls me, it shows on the dashboard. When I receive, no sound from either end. I mean, balance deducts, timer shows call duration on dashboard. But no sound from either receiving or transmitting end.


Solution 1:

This is how i made phone call from my Huawei modem K3772 on Ubuntu zesty using AT commands.Voice is working and i can also recieve call. I assume that your modem has voice capabilities and could make call on Mobile Partner in Windows

  1. insert your dongle into pc and should be detected by Network manager applet

2.Find out the various ports of the modem:

ls /dev/ttyU*

usually, the dialogue port (ie 1st port) is /dev/ttyUSB0, audio port (ie 2nd port) is /dev/ttyUSB1 and sms & internet aka data port (ie 3rd port) is /dev/ttyUSB3

  1. install picocom:

sudo apt install picocom

  1. start picocom on the dialogue port:

sudo picocom -c /dev/ttyUSB0

the -c means local echo on, making AT commands visible as you type

find the audio sample formats supported by your modem:

AT^CVOICE?

A reponse of 0,8000,16,10 means the rate is 8000hz

open another terminal and enable audio:

sudo cat /dev/ttyUSB1 | aplay -f S16_LE

open another terminal and enable microphone:

sudo arecord -f S16_LE /dev/ttyUSB1

the audio sampleformat, S16_LE is 'Signed 16 bit Little Endian', Rate 8000 Hz, Mono it depends on the response from AT^CVOICE? other modems may require S16_BE

go back to the first terminal and dial the number:

ATDxxxxxxxxxx;

eg: ATD024698xxxx; OR ATD100;

from the same dialogue terminal he route audio:

AT^DDSETEX=2

you should now hear sound from your speakers and you can also speak into the mic

after you are done with your call, you can hangup with:

AT+CHUP

if you want to keep you modem online so you can recieve calls, then keep both terminals open You can recieve call with

ATA

followed by AT^DDSETEX=2 to enable sound
To stop picocom: ctrl+a followed by ctrl+x

The mmcli developers are trying to implement it in ModemManager.I think work is still on going. maybe modem-manager-gui might also implement voice someday

tIP:-if you hear scratcy sound instead of human voice, change S16_LE to S16_BE.This is the sample format. other sample formats can be gotten from aplay --help

reference: mmcli Huawei voice