voicecall: Fix HangupAll for HFP
authorDenis Kenzior <denkenz@gmail.com>
Wed, 12 Oct 2011 21:00:00 +0000 (16:00 -0500)
committerDenis Kenzior <denkenz@gmail.com>
Wed, 12 Oct 2011 21:00:00 +0000 (16:00 -0500)
commit4ced8116a9a6ea0a4b95702bd2ca863dd3396f58
tree3d3bc3f967e736731a61e8ee2b780aee7174e523
parentef75a44c12441ea27a906f001083c3c1450af976
voicecall: Fix HangupAll for HFP

HFP does not implement HangupAll natively and most AGs do not support
releasing held calls by id.  Work around this by using hangup active and
then dropping all held calls if no waiting calls exist.  Otherwise
fall back to releasing calls by id.
src/voicecall.c