[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, master, updated. milestone4-368-g700ab82
Michael 'Mickey' Lauer
mickey at vanille-media.de
Mon Feb 2 18:51:40 UTC 2009
The following commit has been merged in the master branch:
commit 5218a43ed072adcba5fb546b565f58136cbf6f9e
Author: Michael 'Mickey' Lauer <mickey at vanille-media.de>
Date: Thu Dec 18 09:32:54 2008 +0100
ogsmd: [ABSTRACT] start handling +CGEV (neccessary to detect gprs connection teardown)
diff --git a/framework/subsystems/ogsmd/modems/abstract/unsolicited.py b/framework/subsystems/ogsmd/modems/abstract/unsolicited.py
index 4b0f7fe..c02dada 100644
--- a/framework/subsystems/ogsmd/modems/abstract/unsolicited.py
+++ b/framework/subsystems/ogsmd/modems/abstract/unsolicited.py
@@ -11,7 +11,7 @@ Package: ogsmd.modems.abstract
Module: unsolicited
"""
-__version__ = "0.9.9.1"
+__version__ = "0.9.9.2"
import calling
@@ -55,21 +55,34 @@ class AbstractUnsolicitedResponseDelegate( object ):
Cell Broadcast Message
"""
values = safesplit( righthandside, ',' )
- if len( values ) == 1:
+ if len( values ) == 1: # PDU MODE
cb = ogsmd.gsm.sms.CellBroadcast.decode(pdu)
sn = cb.sn
channel = cb.mid
dcs = cb.dcs
page = cb.page
data = cb.ud
- elif len( values ) == 5:
+ elif len( values ) == 5: # TEXT MODE
sn, mid, dcs, page, pages = values
channel = int(mid)
data = pdu
else:
- assert False, "unhandled +CBM cell broadcast notification"
+ logger.warning( "unrecognized +CBM cell broadcast notification, please fix me..." )
+ return
self._object.IncomingCellBroadcast( channel, data )
+ # +CGEV: ME DEACT "IP","010.161.025.237",1
+ def plusCGEV( self, righthandside ):
+ """
+ Gprs Context Event
+ """
+ values = safesplit( righthandside, ',' )
+ if len( values ) == 1: # detach, but we're not having an IP context online
+ pass
+ elif len( values ) >= 3: # detach while we were attached
+ pass
+ # FIXME gather pdp context class and stop ppp
+
# +CGREG: 2
# +CGREG: 1,"000F","5B4F
def plusCGREG( self, righthandside ):
--
FSO frameworkd Debian packaging
More information about the pkg-fso-commits
mailing list