''' Created on Aug 18, 2011 @author: Japskua ''' import dbus class Caller(object): """ @summary: This is the Caller class that makes the phone calls """ def __init__(self): """ @summary: The Constructor """ # Do nothing self.bus = dbus.SystemBus() self.csd_call = dbus.Interface(self.bus.get_object("com.nokia.csd", "/com/nokia/csd/call"), "com.nokia.csd.Call") def Call(self, number): """ @summary: The function to Call to a given number @param number: The number to call to @type number: String """ self.csd_call.CreateWith(str(number), dbus.UInt32(0)) if __name__ == '__main__': caller = Caller() caller.Call("0400558160")