Open Source Telephony
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: Error sending DTMF with calypso
Date: Thu, 15 Jul 2010 09:30:44 -0500	[thread overview]
Message-ID: <4C3F1B94.2070406@gmail.com> (raw)
In-Reply-To: <AANLkTil4AMwD5v6V_SGtSlXyHgpeMpnsgYhlSzz2TjEm@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 671 bytes --]

Hi Niko,

On 07/14/2010 09:03 PM, Nicola Mfb wrote:
> Hi!
> I tried SendTones with calypso during an active call but it failed (v0.22):
> 
> ofonod[259]: DLC0: > AT\r
> ofonod[259]: DLC0: < \r\nOK\r\n
> ofonod[259]: DLC0: Finally woke up the modem
> ofonod[259]: DLC0: > AT+VTS="1"\r
> ofonod[259]: DLC0: < \r\nERROR\r\n
> ofonod[259]: src/voicecall.c:generic_callback() command failed with
> error: Unknown error type
> 
> Am I missing somethings?
> 

I admit I never tested it on the calypso.  I have a hunch that the
quotes are not needed for the DTMF character.  E.g. AT+VTS=1.

Can you try the attached patch and report back?

Thanks,
-Denis

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: dtmf.patch --]
[-- Type: text/x-patch, Size: 576 bytes --]

diff --git a/drivers/calypsomodem/voicecall.c b/drivers/calypsomodem/voicecall.c
index ae49eb0..511d533 100644
--- a/drivers/calypsomodem/voicecall.c
+++ b/drivers/calypsomodem/voicecall.c
@@ -209,10 +209,10 @@ static void calypso_send_dtmf(struct ofono_voicecall *vc, const char *dtmf,
 		return;
 	}
 
-	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]);
 
 	calypso_template(vc, buf, cb, data);
 	g_free(buf);

  reply	other threads:[~2010-07-15 14:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-15  2:03 Error sending DTMF with calypso Nicola Mfb
2010-07-15 14:30 ` Denis Kenzior [this message]
2010-07-15 14:37   ` Nicola Mfb
2010-07-15 14:42     ` Denis Kenzior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C3F1B94.2070406@gmail.com \
    --to=denkenz@gmail.com \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox