Skip to contentSkip to conversation

default.xml: accept SMS with SMSC num "123"

PATCH In review Nicolas Bertrand 2 participants 2 messages Aug 30, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 default.xml: accept SMS with SMSC num "123"

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(+)
src/default.xml +7 -0
index 568259b..78fc9ae 100644
@@ -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>
Signature · 1 line
1.7.9.5
#1 lore raw

Hi Nicolas,

Quoted 11 lines · Nicolas Bertrand

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(+)
src/default.xml +0 -0
index 568259b..78fc9ae 100644

src/default.xml line 2766

Quoted 10 lines
src/default.xml +7 -0
@@ -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>

Is there a reason we can't modify the existing default rule to accept every SMS?

src/default.xml line 2769

Quoted 3 lines
src/default.xml +0 -0
  </state>
 
  <chat>

Regards,
-Denis