Hi,
Zhang, Zhenhua wrote:
Hi,
There're two cases of outgoing call: dial from HF or dial from phone.
In the first case, some phones may not support enhanced call status
(AT+CLCC) to query outgoing number. So we need to pass struct
atd_cb_data to fill in the number and type. Later, we invoke
AT+CLCC to query phone number and overwrite ours if we are wrong.
In the second case, the phone is dialing from phone and we
know nothing. So we have to query it through AT+CLCC when callsetup=2.
If phone does not support AT+CLCC, we fake a new call for it. ---
drivers/hfpmodem/voicecall.c | 219
I updated the algorithm of sync_dialing_cb to handle the multi calls case.
It is possible to dial the second call from phone and we only have the first call
record. So we need a loop to scan the +CLCC result.
The new patch is attached.
Regards,
Zhenhua