diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-10-13 08:24:13 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-10-13 08:24:13 +0300 |
commit | b7fbef011bf59f9e64800abad215dee831c567a4 (patch) | |
tree | 97575913c575acd8e26ef1c007ad1b2cd25a4dd8 /drivers | |
parent | 9914b2059e4eb0d5e7378ddfbcdd25ea02c74483 (diff) | |
download | ofono-b7fbef011bf59f9e64800abad215dee831c567a4.tar.bz2 |
ifxmodem: Send DTMF commands without quotes
The AT+VTS command takes a single character and should not use quotes.
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ifxmodem/voicecall.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/ifxmodem/voicecall.c b/drivers/ifxmodem/voicecall.c index efc90dbb..90f6e8c8 100644 --- a/drivers/ifxmodem/voicecall.c +++ b/drivers/ifxmodem/voicecall.c @@ -494,16 +494,15 @@ static void ifx_send_dtmf(struct ofono_voicecall *vc, const char *dtmf, if (!cbd) goto error; - /* strlen("+VTS=\"T\";") = 9 + initial AT + null */ - buf = g_try_new(char, len * 9 + 3); - + /* strlen("+VTS=T\;") = 7 + initial AT + null */ + buf = g_try_new(char, len * 7 + 3); if (!buf) goto error; - s = sprintf(buf, "AT+VTS=\"%c\"", dtmf[0]); + s = sprintf(buf, "AT+VTS=%c", dtmf[0]); for (i = 1; i < len; i++) - s += sprintf(buf + s, ";+VTS=\"%c\"", dtmf[i]); + s += sprintf(buf + s, ";+VTS=%c", dtmf[i]); s = g_at_chat_send(vd->chat, buf, none_prefix, vts_cb, cbd, g_free); |