[PATCH 4/4] Fix: Fill in the phone number info for outgoing call

Zhang, Zhenhua zhenhua.zhang at intel.com
Thu Nov 5 05:57:34 PST 2009


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Fix-Fill-in-the-phone-number-info-for-outgoing-call.patch
Type: application/octet-stream
Size: 8283 bytes
Desc: 0004-Fix-Fill-in-the-phone-number-info-for-outgoing-call.patch
URL: <http://lists.ofono.org/pipermail/ofono/attachments/20091105/d25631e1/attachment.obj>


More information about the ofono mailing list