<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=593130916-05012010><FONT face=Arial color=#0000ff size=2>I 
would suggest running dbus-monitor and calling your cellphone to see what 
happens.&nbsp; I did this, capturing the output to a file and got the output 
listed below.</FONT></SPAN></DIV>
<DIV><SPAN class=593130916-05012010><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=593130916-05012010><FONT face=Arial color=#0000ff size=2>It 
appears as if the strings org.freedesktop.Telepathy.Channel.InitiatorID and 
org.freedesktop.Telepathy.Channel.TargetID both contain the incoming phone 
number.</FONT></SPAN></DIV>
<DIV><SPAN class=593130916-05012010><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=593130916-05012010><FONT face=Arial color=#0000ff size=2>I have 
not worked with python and dbus, but it seems like this should contain the clues 
necessary to get the needed information.&nbsp; </FONT></SPAN></DIV>
<DIV><SPAN class=593130916-05012010><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=593130916-05012010><FONT face=Arial color=#0000ff size=2>I did, 
however, also look at the database /home/user/.rtcom-eventlogger/el.db&nbsp; 
This is an sqlite3 database that can be queried after the fact from Python to 
receive information about phone calls.&nbsp; I talked a little bit about this in 
my blog post</FONT></SPAN></DIV>
<DIV><SPAN class=593130916-05012010><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=593130916-05012010><FONT face=Arial color=#0000ff size=2>#N900 
mbarcode, python, sms and sqlite3</FONT></SPAN></DIV>
<DIV><SPAN class=593130916-05012010><FONT face=Arial color=#0000ff size=2><A 
href="http://www.orient-lodge.com/node/3896">http://www.orient-lodge.com/node/3896</A></FONT></SPAN></DIV>
<DIV><SPAN class=593130916-05012010><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=593130916-05012010><FONT face=Arial color=#0000ff size=2>Hope 
this helps.</FONT></SPAN></DIV>
<DIV><SPAN class=593130916-05012010><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=593130916-05012010><FONT face=Arial color=#0000ff 
size=2>Aldon</FONT></SPAN></DIV>
<DIV><SPAN class=593130916-05012010><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=593130916-05012010><FONT face=Arial color=#0000ff 
size=2>==</FONT></SPAN></DIV>
<DIV><SPAN class=593130916-05012010><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=593130916-05012010><FONT face=Arial color=#0000ff size=2>signal 
sender=org.freedesktop.DBus -&gt; dest=:1.551 serial=2 
path=/org/freedesktop</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=593130916-05012010><FONT face=Arial color=#0000ff 
size=2>&nbsp;&nbsp; string ":1.551"<BR>method call sender=:1.551 -&gt; 
dest=org.freedesktop.DBus serial=3 path=/org/freede</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=593130916-05012010><FONT face=Arial color=#0000ff 
size=2>&nbsp;&nbsp; string "type='method_call'"<BR>method call sender=:1.551 
-&gt; dest=org.freedesktop.DBus serial=4 path=/org/freede</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=593130916-05012010><FONT face=Arial color=#0000ff 
size=2>&nbsp;&nbsp; string "type='method_return'"<BR>method call sender=:1.551 
-&gt; dest=org.freedesktop.DBus serial=5 
path=/org/freede<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; struct {<BR>&nbsp;&nbsp; 
stringobject path 
"/org/freedesktop/Telepathy/Connection/ring/tel/ring/incomi<BR>signal searray 
[.20 -&gt; dest=(null destination) serial=1153 
path=/org/freedesktop<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
dict entry(<BR>&nbsp;&nbsp; array [&nbsp;&nbsp;&nbsp;&nbsp; string 
"org.freedesktop.Telepathy.Channel.InitiatorID"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
variant&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
string 
"12032980814"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dict 
entry(<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
string 
"org.freedesktop.Telepathy.Channel.Type.StreamedMedia.FUTU<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
variant&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
boolean 
false<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
)<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;&nbsp; dict 
entry(<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
string 
"org.freedesktop.Telepathy.Channel.TargetHandle"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
variant&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
uint32 28<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dict 
entry(<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
string 
"org.freedesktop.Telepathy.Channel.TargetID"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
variant&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
string 
"12032980814"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
)</FONT></SPAN></DIV>
<BLOCKQUOTE>
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> 
  maemo-developers-bounces@maemo.org 
  [mailto:maemo-developers-bounces@maemo.org]<B>On Behalf Of </B>Timo 
  Pelkonen<BR><B>Sent:</B> Tuesday, January 05, 2010 11:11 AM<BR><B>To:</B> 
  maemo-developers@maemo.org<BR><B>Subject:</B> any way to get incoming call 
  number to python?<BR><BR></FONT></DIV>Hi<BR><BR>I am starting to develop an 
  app to maemo, my friend is doing similar one to nokia s60 and he told this is 
  the thing one must start with.<BR><BR>Is getting incoming call number doable 
  with dbus? if not, is there other ways? Links to any documents relevant are 
  also appreciated.<BR><BR>Ossipena / Timo<BR></BLOCKQUOTE></BODY></HTML>