[maemo-developers] way to hang up calls via dbus

From: Chris Elsworth chris at shagged.org
Date: Wed Jan 13 18:54:37 EET 2010
On Wed, 13 Jan 2010 10:39:51 -0000, Timo Pelkonen <peltsip at gmail.com>  
wrote:

> Hi, I'm being a bit lazy and want to know is it possible to end calls via
> dbus commands?
>
> If nobody knows, I'll read the log through I collected tonight and try to
> figure it out by myself.

Hello,

Yes, python code:

bus = dbus.SystemBus()
callobject = bus.get_object('com.nokia.csd.Call', '/com/nokia/csd/call/1')
smsiface = dbus.Interface(callobject, 'com.nokia.csd.Call.Instance')
smsiface.Release()

This leaves the rejected call as 'missed' though, I was trying to knock up  
an automatic rejector based on the incoming number and I wouldn't want the  
LED flashing at me after I'd rejected one.

I guess I need to poke in the eventlogger and change a flag on the most  
recent missed call to fix this?
I've found a script that uses SQLlite to poke in that database, is this  
the best way or is there a proper python class to do it?

-- 
Chris
More information about the maemo-developers mailing list