[pkg-fso-commits] [SCM] framworkd debian packageing branch, master, updated. milestone2-89-geb27523

Daniel Willmann daniel at totalueberwachung.de
Sat Aug 23 14:06:20 UTC 2008


The following commit has been merged in the master branch:
commit 3ecfc788e6181f47191798a0124f00f9bd5d65c0
Author: Daniel Willmann <daniel at totalueberwachung.de>
Date:   Mon Aug 18 17:50:18 2008 +0200

    ogsmd: Add regex and consts for using SMS PDU mode

diff --git a/framework/subsystems/ogsmd/gsm/const.py b/framework/subsystems/ogsmd/gsm/const.py
index f595b76..568e0ca 100644
--- a/framework/subsystems/ogsmd/gsm/const.py
+++ b/framework/subsystems/ogsmd/gsm/const.py
@@ -41,9 +41,14 @@ PAT_PHONEBOOK_INFO = re.compile( '\((?P<lowest>\d+)-(?P<highest>\d+)\)(?:,(?P<nu
 # +CMGL: 20,"STO UNSENT","",,,128,10
 PAT_SMS_TEXT_HEADER = re.compile( '(?P<index>\d+),"(?P<status>[^"]+)","(?P<number>[^"]*)",(?:"(?P<name>[^"]+)")?,(?:"(?P<timestamp>[^"]+)")?,(?P<ntype>\d+),(?P<textlen>\d+)' )
 
+# +CMGL: 1,1,"",125
+PAT_SMS_PDU_HEADER = re.compile( '(?P<index>\d+),(?P<status>\d+),(?:"(?P<name>[^"]+)")?,(?P<pdulen>\d+)' )
+
 # +CMGR: "REC READ","Alice-Team",,"08/05/13,09:12:15+08",208,133
 PAT_SMS_TEXT_HEADER_SINGLE = re.compile( '"(?P<status>[^"]+)","(?P<number>[^"]+)",(?:"(?P<name>[^"]+)")?,(?:"(?P<timestamp>[^"]+)")?,(?P<ntype>\d+),(?P<textlen>\d+)' )
 
+PAT_SMS_PDU_HEADER_SINGLE = re.compile( '(?P<status>\d+),(?:"(?P<name>[^"]+)"),(?P<pdulen>\d+)' )
+
 PAT_STRING = re.compile( r'''"([^"]+?)"''' )
 
 # call forwarding
@@ -662,6 +667,23 @@ SMS_STATUS_IN = { \
 }
 
 #=========================================================================#
+SMS_PDU_STATUS_OUT = { \
+    0 : "unread",
+    1: "read",
+    2 : "unsent",
+    3 : "sent",
+}
+
+#=========================================================================#
+SMS_PDU_STATUS_IN = { \
+    "unread": 0,
+    "read": 1,
+    "unsent": 2,
+    "sent": 3,
+    "all": 4,
+}
+
+#=========================================================================#
 CALL_DIRECTION = { \
     0: "outgoing",
     1: "incoming",

-- 
framworkd debian packageing



More information about the pkg-fso-commits mailing list