summaryrefslogtreecommitdiffstats
path: root/src/emulator.c
diff options
context:
space:
mode:
authorFrédéric Danis <frederic.danis@linux.intel.com>2011-07-19 18:10:47 +0200
committerDenis Kenzior <denkenz@gmail.com>2011-07-19 11:18:22 -0500
commitd3f8eae1ff08dda9a506d40ac6d92a84f098382c (patch)
tree7bfcd538b96b5801f2cbf2ca21030ddc734cd0ff /src/emulator.c
parent006c8825e4b2b427171fb87b467b130b43e82b0e (diff)
downloadofono-d3f8eae1ff08dda9a506d40ac6d92a84f098382c.tar.bz2
voicecall: fix callheld indicator for PTS
Fix PTS test TP/TWC/BV-03-I [Call Waiting- Hold Active/Retrieve Waiting Call or Held]. PTS test fails after receiving intermediate update of callheld indicator with value 0 (no held call) before it receives update to value 1 (active and held calls). This is due to the non-atomic update of calls status after call swap (moving first call to active state before moving second one to hold state). HFP 1.5 spec specifies that an update of callheld indicator to 1 should be sent after AT+CHLD=2 command. As oFono emulator sends +CIEV only if the indicator value changes, we need to use an intermediate state for callheld indicator (2, all calls on hold). So, in case of multiple active calls, or an active call with an active mutiparty call, force update of callheld indicator to 2.
Diffstat (limited to 'src/emulator.c')
0 files changed, 0 insertions, 0 deletions