Open Source Telephony
 help / color / mirror / Atom feed
From: Pekka Pessi <ppessi@gmail.com>
To: ofono@ofono.org
Subject: [PATCH] voicecall: allow P or , within the dial string
Date: Thu, 08 Oct 2009 19:59:54 +0300	[thread overview]
Message-ID: <1255021194-31138-3-git-send-email-ppessi@gmail.com> (raw)
In-Reply-To: <1255021194-31138-2-git-send-email-ppessi@gmail.com>

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

From: Pekka Pessi <Pekka.Pessi@nokia.com>

"DTMF control digit separator" is used as pause according to GSM 02.07.
According to GSM 11.11 it is stored as BCD code 1100 in the SIM card. Nokia
modems use 'p' to represent pause. AT commands use ',' to represent pause.

Note that the interpretation of 'p' and ',' differs when used as a part of a
dial strings. When a dial string is separated from the phone number by ',',
sending the dial string starts after call is alerting. When a dial string is
separated by 'p' (DTMF control digit separator), dial string is sent only
after call is connected.
---
 src/voicecall.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/voicecall.c b/src/voicecall.c
index bd5358c..c69c822 100644
--- a/src/voicecall.c
+++ b/src/voicecall.c
@@ -1121,6 +1121,12 @@ static DBusMessage *manager_tone(DBusConnection *conn,
 				(tones[i] >= 'A' && tones[i] <= 'D'))
 			continue;
 
+		/* Pause can be described with P or , */
+		if (tones[i] == 'P' || tones[i] == ',') {
+			tones[i] = 'p';
+			continue;
+		}
+
 		g_free(tones);
 		return __ofono_error_invalid_format(msg);
 	}
-- 
1.6.0.4


  reply	other threads:[~2009-10-08 16:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-08 16:59 [PATCH] voicecall.c: use swap_without_accept method, if present Pekka Pessi
2009-10-08 16:59 ` [PATCH] voicecall: allow sending DTMF tones while call is in alerting state Pekka Pessi
2009-10-08 16:59   ` Pekka Pessi [this message]
2009-10-08 17:29     ` [PATCH] voicecall: allow P or , within the dial string Denis Kenzior
2009-10-08 19:30       ` Pekka Pessi
2009-10-08 20:37         ` Denis Kenzior
2009-10-09  2:30           ` Pekka Pessi
2009-10-09  6:22             ` Denis Kenzior
2009-10-08 18:02   ` [PATCH] voicecall: allow sending DTMF tones while call is in alerting state Denis Kenzior
2009-10-08 18:01 ` [PATCH] voicecall.c: use swap_without_accept method, if present 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=1255021194-31138-3-git-send-email-ppessi@gmail.com \
    --to=ppessi@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