[maemo-developers] any way to get incoming call number to python?
From: Aldon Hynes Aldon.Hynes at Orient-Lodge.comDate: Tue Jan 5 18:19:04 EET 2010
- Previous message: any way to get incoming call number to python?
- Next message: Semi-transparent background for Desktop Widget (Python + Cairo)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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. It appears as if the strings org.freedesktop.Telepathy.Channel.InitiatorID and org.freedesktop.Telepathy.Channel.TargetID both contain the incoming phone number. I have not worked with python and dbus, but it seems like this should contain the clues necessary to get the needed information. 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 #N900 mbarcode, python, sms and sqlite3 http://www.orient-lodge.com/node/3896 Hope this helps. Aldon == signal sender=org.freedesktop.DBus -> dest=:1.551 serial=2 path=/org/freedesktop string ":1.551" method call sender=:1.551 -> dest=org.freedesktop.DBus serial=3 path=/org/freede string "type='method_call'" method call sender=:1.551 -> dest=org.freedesktop.DBus serial=4 path=/org/freede string "type='method_return'" method call sender=:1.551 -> dest=org.freedesktop.DBus serial=5 path=/org/freede struct { stringobject path "/org/freedesktop/Telepathy/Connection/ring/tel/ring/incomi signal searray [.20 -> dest=(null destination) serial=1153 path=/org/freedesktop dict entry( array [ string "org.freedesktop.Telepathy.Channel.InitiatorID" variant string "12032980814" ) dict entry( string "org.freedesktop.Telepathy.Channel.Type.StreamedMedia.FUTU variant boolean false ) dict entry( string "org.freedesktop.Telepathy.Channel.Type.StreamedMedia.FUTU variant boolean true ) dict entry( string "org.freedesktop.Telepathy.Channel.TargetHandleType" variant uint32 1 ) dict entry( string "org.freedesktop.Telepathy.Channel.TargetHandle" variant uint32 28 ) dict entry( string "org.freedesktop.Telepathy.Channel.TargetID" variant string "12032980814" ) -----Original Message----- From: maemo-developers-bounces at maemo.org [mailto:maemo-developers-bounces at maemo.org]On Behalf Of Timo Pelkonen Sent: Tuesday, January 05, 2010 11:11 AM To: maemo-developers at maemo.org Subject: any way to get incoming call number to python? Hi 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. Is getting incoming call number doable with dbus? if not, is there other ways? Links to any documents relevant are also appreciated. Ossipena / Timo -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.maemo.org/pipermail/maemo-developers/attachments/20100105/c725d1f1/attachment.htm>
- Previous message: any way to get incoming call number to python?
- Next message: Semi-transparent background for Desktop Widget (Python + Cairo)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]