All of lore.kernel.org
 help / color / mirror / Atom feed
* Error sending DTMF with calypso
@ 2010-07-15  2:03 Nicola Mfb
  2010-07-15 14:30 ` Denis Kenzior
  0 siblings, 1 reply; 4+ messages in thread
From: Nicola Mfb @ 2010-07-15  2:03 UTC (permalink / raw)
  To: ofono

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

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?

    Niko

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Error sending DTMF with calypso
  2010-07-15  2:03 Error sending DTMF with calypso Nicola Mfb
@ 2010-07-15 14:30 ` Denis Kenzior
  2010-07-15 14:37   ` Nicola Mfb
  0 siblings, 1 reply; 4+ messages in thread
From: Denis Kenzior @ 2010-07-15 14:30 UTC (permalink / raw)
  To: ofono

[-- 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);

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: Error sending DTMF with calypso
  2010-07-15 14:30 ` Denis Kenzior
@ 2010-07-15 14:37   ` Nicola Mfb
  2010-07-15 14:42     ` Denis Kenzior
  0 siblings, 1 reply; 4+ messages in thread
From: Nicola Mfb @ 2010-07-15 14:37 UTC (permalink / raw)
  To: ofono

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

On Thu, Jul 15, 2010 at 4:30 PM, Denis Kenzior <denkenz@gmail.com> wrote:
> 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?

What fine timing! I just was going to report that rebuilding ofono
without the quotes on the tone char fixed the issue ;)

Thanks

     Niko

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Error sending DTMF with calypso
  2010-07-15 14:37   ` Nicola Mfb
@ 2010-07-15 14:42     ` Denis Kenzior
  0 siblings, 0 replies; 4+ messages in thread
From: Denis Kenzior @ 2010-07-15 14:42 UTC (permalink / raw)
  To: ofono

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

Hi Niko,

On 07/15/2010 09:37 AM, Nicola Mfb wrote:
> On Thu, Jul 15, 2010 at 4:30 PM, Denis Kenzior <denkenz@gmail.com> wrote:
>> 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?
> 
> What fine timing! I just was going to report that rebuilding ofono
> without the quotes on the tone char fixed the issue ;)

Good :) I pushed the quote fix upstream.

Thanks,
Denis

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-07-15 14:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-15  2:03 Error sending DTMF with calypso Nicola Mfb
2010-07-15 14:30 ` Denis Kenzior
2010-07-15 14:37   ` Nicola Mfb
2010-07-15 14:42     ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.