ofono/drivers/hfpmodem
Kuba Pawlak 3e6bbc676f hfp: Synchronize call state in case of +CHUP error
It is possible for the phone to accept Dial request
but not actually dial. This leaves a voicecall object
in state 'dialling' that cannot be removed.
Proposed workaround is to trigger AT+CLCC when an error
is returned for Hangup. As the call is not on the list,
this would remove this hanging object and signal CallRemoved.

Windows Phone trace with this fix:
ofonod[273]: > ATD1;\r
ofonod[273]: < \r\nOK\r\n
ofonod[273]: src/voicecall.c:dial_handle_result() Registering new call: 1
ofonod[273]: < \r\n+CIEV: 5,4\r\n
ofonod[273]: src/network.c:ofono_netreg_strength_notify() strength 80
ofonod[273]: > AT+CHUP\r
ofonod[273]: < \r\nERROR\r\n
ofonod[273]: src/voicecall.c:generic_callback() command failed with error: Unknown error type
ofonod[273]: > AT+CLCC\r
ofonod[273]: < \r\nOK\r\n
ofonod[273]: src/voicecall.c:ofono_voicecall_disconnected() Got disconnection event for id: 1, reason: 2
2015-08-05 11:15:33 -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: Synchronize call state in case of +CHUP error 2015-08-05 11:15:33 -05:00