summaryrefslogtreecommitdiffstats
path: root/btif/src/btif_hf.c
diff options
context:
space:
mode:
authorRavi Nagarajan <nravi@broadcom.com>2012-03-09 10:34:49 +0530
committerMatthew Xie <mattx@google.com>2012-07-14 11:19:12 -0700
commit0afef5f7d9b3fe739671c1caa0aa5f1245e0c31d (patch)
tree2a249d6621db15b4cf9d41acdf2f1fce90fde000 /btif/src/btif_hf.c
parenteed9fc03b8b63eb62f7787a2eb2b4a81c125ccf2 (diff)
downloadexternal_bluetooth_bluedroid-0afef5f7d9b3fe739671c1caa0aa5f1245e0c31d.zip
external_bluetooth_bluedroid-0afef5f7d9b3fe739671c1caa0aa5f1245e0c31d.tar.gz
external_bluetooth_bluedroid-0afef5f7d9b3fe739671c1caa0aa5f1245e0c31d.tar.bz2
Add type to the CCWA caller id string
Change-Id: I0c0cf6db32b5fca9d5deee395d3315fa7318ae67
Diffstat (limited to 'btif/src/btif_hf.c')
-rw-r--r--btif/src/btif_hf.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/btif/src/btif_hf.c b/btif/src/btif_hf.c
index 14e677f..866655b 100644
--- a/btif/src/btif_hf.c
+++ b/btif/src/btif_hf.c
@@ -895,11 +895,15 @@ static bt_status_t phone_state_change(int num_active, int num_held, bthf_call_st
res = BTA_AG_IN_CALL_RES;
if (number)
{
+ int xx = 0;
if ((type == BTHF_CALL_ADDRTYPE_INTERNATIONAL) && (*number != '+'))
- sprintf (ag_res.str, "\"+%s\"", number);
+ xx = sprintf (ag_res.str, "\"+%s\"", number);
else
- sprintf (ag_res.str, "\"%s\"", number);
+ xx = sprintf (ag_res.str, "\"%s\"", number);
ag_res.num = type;
+
+ if (res == BTA_AG_CALL_WAIT_RES)
+ sprintf(&ag_res.str[xx], ",%d", type);
}
break;
case BTHF_CALL_STATE_DIALING: