电话接通后调用
local content = io.readFile("/ldata/alarm.amr")
后手机端没有播放声音 是音频文件格式问题吗? 音频文件属性:比特率12.2K 采样率8000HZ 单声道
详细日志在附件
[2019-11-04 14:34:56.894]: [I]-[testCall.connected]
[2019-11-04 14:34:57.413]: [I]-[ril.sendat]AT+CGATT?
[2019-11-04 14:34:57.424]: [I]-[ril.proatc]
[2019-11-04 14:34:57.433]: [I]-[ril.proatc]+CGATT: 0
[2019-11-04 14:34:57.443]: [I]-[ril.proatc]
[2019-11-04 14:34:57.450]: [I]-[ril.proatc]OK
[2019-11-04 14:34:59.439]: [I]-[ril.sendat]AT+CGATT?
[2019-11-04 14:34:59.450]: [I]-[ril.proatc]
[2019-11-04 14:34:59.460]: [I]-[ril.proatc]+CGATT: 0
[2019-11-04 14:34:59.472]: [I]-[ril.proatc]
[2019-11-04 14:34:59.482]: [I]-[ril.proatc]OK
[2019-11-04 14:35:01.473]: [I]-[ril.sendat]AT+CGATT?
[2019-11-04 14:35:01.484]: [I]-[ril.proatc]
[2019-11-04 14:35:01.492]: [I]-[ril.proatc]+CGATT: 0
[2019-11-04 14:35:01.502]: [I]-[ril.proatc]
[2019-11-04 14:35:01.507]: [I]-[ril.proatc]OK
[2019-11-04 14:35:01.896]: [fopen_ext]: /ldata/alarm.amr 2!
[2019-11-04 14:35:01.905]: lualibc_fopen_ext /RecDir/rec000 wb 601 1 2
[2019-11-04 14:35:01.979]: [I]-[ril.sendat]AT+AUDREC=0,0,2,0,50000
[2019-11-04 14:35:02.010]: [I]-[ril.proatc]
[2019-11-04 14:35:02.017]: [I]-[ril.proatc]ERROR
[2019-11-04 14:35:02.025]: [I]-[ril.defrsp]AT+AUDREC=0,0,2,0,50000falseERRORnil
[2019-11-04 14:35:03.507]: [I]-[ril.sendat]AT+CGATT?
[2019-11-04 14:35:03.518]: [I]-[ril.proatc]
[2019-11-04 14:35:03.524]: [I]-[ril.proatc]+CGATT: 0
[2019-11-04 14:35:03.534]: [I]-[ril.proatc]
[2019-11-04 14:35:03.540]: [I]-[ril.proatc]OK
[2019-11-04 14:35:05.533]: [I]-[ril.sendat]AT+CGATT?