diff --git a/unit/test-hfp.c b/unit/test-hfp.c
index 7667c52..2d8f439 100644
--- a/unit/test-hfp.c
+++ b/unit/test-hfp.c
g_assert_cmpint(val, ==, 0);
break;
case HFP_INDICATOR_CALLSETUP:
- g_assert_cmpint(val, ==, 0);
+ if (g_str_equal(test_name, "/HFP/HF/ICA/BV-07-C"))
+ g_assert_cmpint(val, ==, 1);
+ else
+ g_assert_cmpint(val, ==, 0);
break;
case HFP_INDICATOR_CALLHELD:
g_assert_cmpint(val, ==, 0);
g_str_equal(test_name, "/HFP/HF/ICA/BV-04-C") ||
g_str_equal(test_name, "/HFP/HF/ICA/BV-04-C-full") ||
g_str_equal(test_name, "/HFP/HF/ICA/BV-06-C") ||
+ g_str_equal(test_name, "/HFP/HF/ICA/BV-07-C") ||
g_str_equal(test_name, "/HFP/HF/ICR/BV-01-C") ||
g_str_equal(test_name, "/HFP/HF/TCA/BV-01-C") ||
g_str_equal(test_name, "/HFP/HF/TCA/BV-02-C")) {
g_str_equal(test_name, "/HFP/HF/ICA/BV-03-C") ||
g_str_equal(test_name, "/HFP/HF/ICA/BV-04-C") ||
g_str_equal(test_name, "/HFP/HF/ICA/BV-04-C-full") ||
+ g_str_equal(test_name, "/HFP/HF/ICA/BV-07-C") ||
g_str_equal(test_name, "/HFP/HF/TCA/BV-01-C") ||
g_str_equal(test_name, "/HFP/HF/TCA/BV-02-C")) {
bool ret;
g_str_equal(test_name, "/HFP/HF/ICA/BV-04-C") ||
g_str_equal(test_name, "/HFP/HF/ICA/BV-04-C-full") ||
g_str_equal(test_name, "/HFP/HF/ICA/BV-06-C") ||
+ g_str_equal(test_name, "/HFP/HF/ICA/BV-07-C") ||
g_str_equal(test_name, "/HFP/HF/TCA/BV-02-C")) {
const char *number;
'2', ',', '0', '\r', '\n'),
data_end());
+ /* Answer Incoming call on AG prior to connection, no in-band
+ * ring - HF
+ */
+ define_hf_test("/HFP/HF/ICA/BV-07-C", test_hf_session,
+ NULL, test_hf_session_done,
+ MINIMAL_SLC_SESSION('1', '0', '1', '0'),
+ frg_pdu('\r', '\n', 'R', 'I', 'N', 'G', '\r', '\n'),
+ frg_pdu('\r', '\n', '+', 'C', 'L', 'I', 'P', ':',
+ '\"', '1', '2', '3', '4', '5', '6', '7', '\"',
+ ',', '1', '2', '9', ',', ',', ',', '\"', 'A',
+ 'i', 'n', 'c', 'o', 'm', 'i', 'n', 'g', 'c',
+ 'a', 'l', 'l', '\"', '\r', '\n'),
+ raw_pdu('\r', '\n', 'O', 'K', '\r', '\n'),
+ frg_pdu('\r', '\n', '+', 'C', 'I', 'E', 'V', ':', ' ',
+ '2', ',', '1', '\r', '\n'),
+ frg_pdu('\r', '\n', '+', 'C', 'I', 'E', 'V', ':', ' ',
+ '3', ',', '0', '\r', '\n'),
+ frg_pdu('\r', '\n', '+', 'C', 'I', 'E', 'V', ':', ' ',
+ '2', ',', '0', '\r', '\n'),
+ data_end());
+
/* Initiate rejection of incoming call - HF */
define_hf_test("/HFP/HF/ICR/BV-01-C", test_hf_session,
NULL, test_hf_session_done,