[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, debian, updated. upstream/0.9.5.5-717-g0f98819

Sebastian Krzyszkowiak seba.dos1 at gmail.com
Sat Aug 6 08:17:14 UTC 2011


The following commit has been merged in the debian branch:
commit 666d6291d43a4c13759a929e92767ff24d434b4a
Author: Sebastian Krzyszkowiak <seba.dos1 at gmail.com>
Date:   Thu Jul 9 12:30:36 2009 +0200

    opimd: ogsmd-Calls: handle calls with hidden peer number

diff --git a/framework/subsystems/opimd/pimb_ogsmd_calls.py b/framework/subsystems/opimd/pimb_ogsmd_calls.py
index 1b81950..8f6a20e 100644
--- a/framework/subsystems/opimd/pimb_ogsmd_calls.py
+++ b/framework/subsystems/opimd/pimb_ogsmd_calls.py
@@ -81,22 +81,25 @@ class OgsmdCallsBackend(Backend):
             self.props['Type']='gsm_'+call_props['mode']
         if call_props.has_key('peer'):
             caller = phone_number_to_tel_uri(call_props["peer"])
-        else:
-            if self.props['Direction'] == 'in':
+        elif self.props.has_key('Direction'):
+            if self.props['Direction'] == 'in' and self.props.has_key('Caller'):
                 caller = self.props['Caller']
-            elif self.props['Direction'] == 'out':
-                caller = self.props['To']
-
-        if (call_status == "incoming"):
-            self.props['Caller'] = caller
+            elif self.props['Direction'] == 'out' and self.props.has_key('Recipient'):
+                caller = self.props['Recipient']
+
+        if call_status == "incoming":
+            try:
+                self.props['Caller'] = caller
+            except:
+                pass
             self.props['Direction'] = 'in'
-        elif (call_status == "outgoing"):
-            self.props['To'] = caller
+        elif call_status == "outgoing":
+            self.props['Recipient'] = caller
             self.props['Direction'] = 'out'
-        elif (call_status == "active"):
+        elif call_status == "active":
             self.props['Answered'] = 1
             self.props['Timestamp'] = time.time()
-        elif (call_status == "release"):
+        elif call_status == "release":
             if self.props.has_key('Timestamp'):   
                 self.props['Duration'] = time.time() - self.props['Timestamp']
             else:

-- 
FSO frameworkd Debian packaging



More information about the pkg-fso-commits mailing list