![]() |
Making Call using XTerminal?
Hi,
I am interested in making calls by sending commands on Xterminal. Idea is to connect N900 using ssh to my ubuntu machine and send commands from ubuntu machine to n900 so that it can make calls. I would also like to do the same using usb connection, where in my n900 is connected to ubuntu machine using usb(PC suite mode) and I send command from ubuntu to n900, it(n900) initates a call as a result. Regards Mrudul |
Re: Making Call using XTerminal
Code:
dbus-send --system --type=method_call --print-reply --dest=com.nokia.csd.Call /com/nokia/csd/call com.nokia.csd.Call.CreateWith string:"$YOURNUMBERHERE" uint32:0 |
Re: Making Call using XTerminal
wow, thats cool. pretty well, a computer that makes phone calls :D
|
Re: Making Call using XTerminal
|
Re: Making Call using XTerminal
I've often wondered if you can use dbus commands to get the most recent SMS ("Conversations") messages as well.
|
Re: Making Call using XTerminal?
Check out http://wiki.maemo.org/Phone_control - lots of xterm commands for doing all sorts of things :)
|
Re: Making Call using XTerminal?
Wow, how did I not stumble across this Wiki before. Thanks.
|
Re: Making Call using XTerminal
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 |
Re: Making Call using XTerminal
Quote:
Code:
#!/usr/bin/python |
All times are GMT. The time now is 03:07. |
vBulletin® Version 3.8.8