View Full Version : start a call via command line?
entwisi
01-07-2010, 04:21 PM
As I can log into my phone over ssh, is there a way to 'start' a call over CLI?
e.g. ./phone --number <blah>
i.e. leave my phone somewhere, log in via ssh, start a call to say my home number and listen in to whats said in the vicinity?
nothing nefarious , just 'interested'
schettj
01-07-2010, 04:25 PM
yep, via dbus interface...
http://wiki.maemo.org/Phone_control
dbus-send --system --dest=com.nokia.csd.Call --type=method_call --print-reply \
/com/nokia/csd/call com.nokia.csd.Call.CreateWith string:"$1" uint32:0
replace $1 with the phone number to dial
schettj
01-07-2010, 04:27 PM
Followup: you probably could stream the mic and save yourself a phonecall, though....
mikhmv
01-07-2010, 04:29 PM
As I can log into my phone over ssh, is there a way to 'start' a call over CLI?
e.g. ./phone --number <blah>
i.e. leave my phone somewhere, log in via ssh, start a call to say my home number and listen in to whats said in the vicinity?
nothing nefarious , just 'interested'
I have never think that I can use this phone to spy for my wife!!!! :D
Or It could be very good Trojan to your co-warker who don't know linux.....
Thanks for Idea!!!!!
entwisi
01-07-2010, 04:43 PM
heh, I do have legitimate reason for this, I plan to use it as a sort of baby monitor to check whats happening with kids left to play upstairs.. I'm happy to let them have the freedom to play but wanted to just listen in to make sure its all Ok
entwisi
01-07-2010, 04:51 PM
OK, tested and works but how do I send a hang up? Can I just kill teh relevant process?
i.e. dbus-send --system --dest=com.nokia.csd.Call --type=method_call --print-reply \
/com/nokia/csd/call com.nokia.csd.Call.CreateWith string:"$1" uint32:0 &
ps -ef|grep dbus
<look at relevant pid>
kill -9 <pid>
/???
schettj
01-07-2010, 05:10 PM
Yikes.... dunno how to hang up! Not sure a kill will do it.
mysticrokks
01-07-2010, 05:29 PM
omg this phone can be naughty lol.
schettj
01-07-2010, 05:42 PM
Ah.... OK, figured it out!
dbus-send --system --dest=com.nokia.csd.Call --print-reply \
/com/nokia/csd/call com.nokia.csd.Call.Release
That hangs it up. Yay!
Jaffa
01-07-2010, 06:01 PM
Ah.... OK, figured it out!
Can you make sure that's on the aforementioned wiki page, please?
TIA.
schettj
01-07-2010, 06:09 PM
on the aforementioned wiki page
good point - done.
crabsody
03-27-2010, 10:27 AM
Followup: you probably could stream the mic and save yourself a phonecall, though....
Does anyone know how can we achieve this?
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.