Hi, I tried giving the command on x-terminal and i get following error "Error com.nokia.csd.Call.Error.InvalidAddress: Create call: Invalid Address Error" I am giving command as follows - dbus-send --system --type=method_call --print-reply --dest=com.nokia.csd.Call /com/nokia/csd/call com.nokia.csd.Call.CreateWith string:"$0404848048" uint32:0 (NOTE: I have changed the number but the number length kept is same.) I tried the same on serial port from my ubuntu machine using ATD command it works fine. for eg: ATD 0404848048; I have tried using python script and that also gives same error. Here is the python code - ====mycall.py======== import gobject, dbus from dbus.mainloop.glib import DBusGMainLoop def place_call(number): bus = dbus.SystemBus() csd_call = dbus.Interface(bus.get_object('com.nokia.csd', '/com/nokia/csd/call'), 'com.nokia.csd.Call') csd_call.CreateWith(str(number), dbus.UInt32(0)) DBusGMainLoop(set_as_default=True) place_call('0404848048') gobject.MainLoop().run() ====mycall.py======== Can someone point to me what is going wrong here? -MVP
#!/usr/bin/python import dbus, sys def place_call(number):bus = dbus.SystemBus() csd_call = dbus.Interface(bus.get_object('com.nokia.csd', '/com/nokia/csd/call'), 'com.nokia.csd.Call') csd.call.CreateWith(str(number), dbus.UInt32(0)) s = sys.argv[1] ar = ['name1', 00000000, 'name2', 00000000, 'name3', 00000000] if s == ar[0]:place_call(ar[1])elif s == ar[2]:place_call(ar[3])elif s == ar[4]:place_call(ar[5])else:print "Sry, mate"
bus = dbus.SystemBus() csd_call = dbus.Interface(bus.get_object('com.nokia.csd', '/com/nokia/csd/call'), 'com.nokia.csd.Call') csd.call.CreateWith(str(number), dbus.UInt32(0))
place_call(ar[1])
place_call(ar[3])
place_call(ar[5])
print "Sry, mate"