<!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. 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> </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> </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. </FONT></SPAN></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>I did,
however, also look at the database /home/user/.rtcom-eventlogger/el.db
This is an sqlite3 database that can be queried after the fact from Python to
receive information about phone calls. 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> </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> </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> </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> </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> </DIV>
<DIV><SPAN class=593130916-05012010><FONT face=Arial color=#0000ff size=2>signal
sender=org.freedesktop.DBus -> dest=:1.551 serial=2
path=/org/freedesktop</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=593130916-05012010><FONT face=Arial color=#0000ff
size=2> string ":1.551"<BR>method call sender=:1.551 ->
dest=org.freedesktop.DBus serial=3 path=/org/freede</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=593130916-05012010><FONT face=Arial color=#0000ff
size=2> string "type='method_call'"<BR>method call sender=:1.551
-> dest=org.freedesktop.DBus serial=4 path=/org/freede</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=593130916-05012010><FONT face=Arial color=#0000ff
size=2> string "type='method_return'"<BR>method call sender=:1.551
-> dest=org.freedesktop.DBus serial=5
path=/org/freede<BR> struct {<BR>
stringobject path
"/org/freedesktop/Telepathy/Connection/ring/tel/ring/incomi<BR>signal searray
[.20 -> dest=(null destination) serial=1153
path=/org/freedesktop<BR>
dict entry(<BR> array [ string
"org.freedesktop.Telepathy.Channel.InitiatorID"<BR>
variant
string
"12032980814"<BR>
)<BR> dict
entry(<BR>
string
"org.freedesktop.Telepathy.Channel.Type.StreamedMedia.FUTU<BR>
variant
boolean
false<BR>
)<BR> dict
entry(<BR>
string
"org.freedesktop.Telepathy.Channel.Type.StreamedMedia.FUTU<BR>
variant
boolean
true<BR>
)<BR> dict
entry(<BR>
string
"org.freedesktop.Telepathy.Channel.TargetHandleType"<BR>
variant
uint32 1<BR>
)<BR> dict
entry(<BR>
string
"org.freedesktop.Telepathy.Channel.TargetHandle"<BR>
variant
uint32 28<BR>
)<BR> dict
entry(<BR>
string
"org.freedesktop.Telepathy.Channel.TargetID"<BR>
variant
string
"12032980814"<BR>
)</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>