ofono/drivers/hfpmodem
Kuba Pawlak 4e9cbcdb89 hfp: Handle extra CCWA event
When a call is waitng, CCWA event is sent and call object
in state WAITING is created. on ReleaseAndAnswer it is
promoted to INCOMING and later to ACTIVE.
iPhones send an extra CCWA event when active call is ended.
This extra event is creating a second call object in state
WAITING. It is not possible to have two WAITING calls, but
previously waiting call was already promoted to INCOMING.
For a brief time we have two calls from the same number,
one INCOMING and one WAITING. Later WAITING one is removed.
As we cannot have a waiting and incoming call at the same
time, ignore CCWA when there is already an INCOMING call.

< \r\n+CIEV: 3,3\r\n
< \r\n+CIEV: 2,1\r\n
< \r\n+CIEV: 3,0\r\n
< \r\n+CCWA: "01234567890",129,1,"Me"\r\n
< \r\n+CIEV: 3,1\r\n
> AT+CLCC\r
< \r\n+CLCC: 1,0,0,0,0,"09876543210",129,"Me"\r\n
< \r\n+CLCC: 2,1,5,0,0,"01234567890",129,"Me"\r\n
< \r\nOK\r\n
< \r\n+CIEV: 2,0\r\n
< \r\n+CCWA: "01234567890",129,1,"Me"\r\n
< \r\n+CIEV: 2,1\r\n
< \r\n+CIEV: 3,0\r\n
> AT+CLCC\r
< \r\n+CLCC: 2,1,0,0,0,"01234567890",129,"Me"\r\n
< \r\nOK\r\n
2015-08-24 16:29:29 -05:00
..
call-volume.c hfpmodem: Avoid segfault in call-volume 2011-10-21 13:17:17 -05:00
devinfo.c hfpmodem: devinfo atom added to export BT address 2011-10-21 13:19:17 -05:00
handsfree.c hfpmodem: hfpmodem.c make sure to use none_prefix 2015-03-24 11:04:48 -05:00
hfpmodem.c git: Fixup messed up permissions 2013-12-21 13:39:54 -06:00
hfpmodem.h git: Fixup messed up permissions 2013-12-21 13:39:54 -06:00
network-registration.c hfpmodem: Make sure to set the prefix properly 2015-02-20 10:28:24 -06:00
siri.c git: Fixup messed up permissions 2013-12-21 13:39:54 -06:00
slc.c hfpmodem: slc.c: make sure to use none_prefix 2015-03-24 11:05:03 -05:00
slc.h hfp: Track supported / active indicators 2014-10-20 13:40:28 -05:00
voicecall.c hfp: Handle extra CCWA event 2015-08-24 16:29:29 -05:00