Fix: Fill in the phone number info for outgoing call
authorZhenhua Zhang <zhenhua.zhang@intel.com>
Fri, 13 Nov 2009 11:28:32 +0000 (19:28 +0800)
committerDenis Kenzior <denkenz@gmail.com>
Fri, 13 Nov 2009 17:15:13 +0000 (11:15 -0600)
commite620a058fb5a2287011c93a3bcdea2aa5f7e1b0a
tree4f7260d5b4599130b06b1f64815c6f52d2d81690
parent6c428c9823d41e60793ddff93c842c612c85450f
Fix: Fill in the phone number info for outgoing call

There're two cases of outgoing call: dial from HF or dial from
phone. We could receive callsetup=2 indicator in both case. So
adding AT+CLCC query to sync the outgoing call.

In the first case, we only need to sync the phone number.  In
the second case, the phone is dialing from phone and we know
nothing. Create a new call and notify the core.

If phone does not support AT+CLCC and there's no call dialing
from HF, we fake a new call for it.
drivers/hfpmodem/voicecall.c