How to do audio record and playback of VoLTE calls using WP7607 module

Hi,

Can you suggest me about the procedure to do audio record and playback of VoLTE calls using WP7607 module?

Thanks
Shatrughan

not sure if this works, but you can have a try:

/legato.framework.18.6.3.wp76xx-201810311759/resources/legato/apps/test/audio/audioCallPbRec/

Hi [jyijyi]
Thanks for the reply. It is compulsory to use legato for VoLTE call record/playback.
I mean is there no way we can do this using Sierra SDK?

Regards
Shatrughan

have you tried AT!AVAUDIO command?

Yes, but it gives me error. I am not sure what wrong I am doing

AT!AVAUDIO=1,1,/usr/avfile.wav

ERROR

AT!AVAUDIO=2,0

ERROR

AT!AVAUDIO=2,1,/usr/avfile.wav

ERROR

I don’t see problem on mangoh red board, you can use my wave file.
0-to-9_8k.zip (81.9 KB)

root@swi-mdm9x28-wp:~# microcom /dev/ttyAT
ati3
Manufacturer: Sierra Wireless, Incorporated
Model: WP7607
Revision: SWI9X07Y_02.25.02.01 000000 jenkins 2019/01/30 08:13:05
IMEI: 359779081234565
IMEI SV: 6
FSN: VN730485080103
+GCAP: +CGSM

OK
at!avcfg=5,1,2
OK
AT!AVSETPROFILE=5
OK
AT!AVAUDIO=1,1,/home/root/0-to-9_8k.wav
OK
[ 729.500484] afe_send_custom_topology_block: AFE SVC cal has invalid size: 0!
[ 729.506509] afe_send_custom_topology: No cal sent for cal_index 7! ret -22
[ 729.540317] afe_get_cal_topology_id: [AFE_TOPOLOGY_CAL] not initialized for this port 4096
[ 729.558792] q6asm_callback: cmd = 0x10da1 returned error = 0x3
[ 729.563725] q6asm_send_cal: DSP returned error[3] audio audstrm cal send
[ 729.582035] adm_callback: cmd = 0x10328 returned error = 0x3
[ 729.586698] send_adm_cal_block: DSP returned error[ADSP_EUNSUPPORTED]
[ 735.634827] BUG: sleeping function called from invalid context at /work/build_src/tmp/work-shared/swi-mdm9x28-wp/kernel-source/kernel/locking/mutex.c:97
[ 735.647457] in_atomic(): 0, irqs_disabled(): 128, pid: 2693, name: aplay
at!avaudio=1,0
OK

Thanks for sharing this. I am not using mangOH red. I have installed WP7607 module on a USBMS mini card.
On the same USBMS mini card, If I install MC7304 module, both 3G audio record and playback works perfectly fine

I also used the recorded file using mangOH you have shared. I am not able to play this file too. Its giving same error (Please see the attached). I also tried playing it with different sample rate. But no success. This file is able to play If I select MC7304 driver but not with WP7607 driver

Are you able to play the recorded file?

Regards
Shatrughan

I can hear the sound on mangoh red audio jack.
I am not using usb audio, so seems not the same use case as yours.

for playback, are you using at command too?

The AT commandi shared above is for playback on audio jack.

Thanks a lot. Can you do record and playback of VoLTE calls as well using mangOH board?
Appreciate your help.

Never try but according to AT command guide, we can do it with at! avaudio

My worry is that VoLTE calls are PS calls(Packet switched calls) and its recording may not work similar way to CS(Circuit switched) 3G/2G calls. Since you have got it working, is it possible to try VoLTE audio record playback? This will be great help and good reference for me to replace our USBMS minicard with mangOH red

Regards
Shatrughan

Will give a try the week after next week as on vacation next week.

just did a test to playback a wav file on voice call in LTE network.
It is working fine.

AT!AVAUDIO=3,1,/home/root/0-to-9_8k.wav
OK
at!avaudio=3,0
OK

NO CARRIER
ati3
Manufacturer: Sierra Wireless, Incorporated
Model: WP7607
Revision: SWI9X07Y_02.25.02.01 000000 jenkins 2019/01/30 08:13:05
IMEI: 359779081234565
IMEI SV: 6
FSN: VN730485080103
+GCAP: +CGSM

OK
at!gstatus?
!GSTATUS:
Current Time: 2828 Temperature: 34
Modem Mitigate Level: 0 ModemProc Mitigate Level: 0
Reset Counter: 1 Mode: ONLINE
System mode: LTE PS state: Attached
IMS reg state: NOT REGISTERED IMS mode: Normal
IMS Srv State: NO SMS,NO VoIP
LTE band: B3 LTE bw: 10 MHz
LTE Rx chan: 1851 LTE Tx chan: 19851
LTE CA state: INACTIVE
EMM state: Registered Normal Service
RRC state: RRC Idle

PCC RxM RSSI: -84 RSRP (dBm): -106
PCC RxD RSSI: -95 RSRP (dBm): -130
Tx Power: 0 TAC: 0462 (1122)
RSRQ (dB): -5 Cell ID: 06745D15 (108289301)
SINR (dB): 15.6

OK

Thanks a lot for the help. Have a nice weekend