Open Source Telephony
 help / color / mirror / Atom feed
From: Nicolas Bertrand <nicolas.bertrand@linux.intel.com>
To: ofono@ofono.org
Subject: [PATCH] default.xml: accept SMS with SMSC num "123"
Date: Thu, 30 Aug 2012 16:18:17 +0200	[thread overview]
Message-ID: <1346336297-13287-1-git-send-email-nicolas.bertrand@linux.intel.com> (raw)

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

Reply to the SMS pdu with CMGS:0 when SMSC is set to "123".
This is used by Send SMS in Demo sim app
---
 src/default.xml |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/default.xml b/src/default.xml
index 568259b..78fc9ae 100644
--- a/src/default.xml
+++ b/src/default.xml
@@ -2757,6 +2757,13 @@
 	<response>+CMGS: 0\n\nOK</response>
 	<switch name="default"/>
     </chat>
+
+    <chat>
+        <!-- Accept messages with SMSC set to 123 (STK app) -->
+        <command>038121F3*</command>
+        <response>+CMGS: 0\n\nOK</response>
+        <switch name="default"/>
+    </chat>
 </state>
 
 <chat>
-- 
1.7.9.5


             reply	other threads:[~2012-08-30 14:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-30 14:18 Nicolas Bertrand [this message]
2012-08-30 17:03 ` [PATCH] default.xml: accept SMS with SMSC num "123" 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=1346336297-13287-1-git-send-email-nicolas.bertrand@linux.intel.com \
    --to=nicolas.bertrand@linux.intel.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