Reply
Thread Tools
Posts: 48 | Thanked: 8 times | Joined on Oct 2009
#1
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'
 

The Following User Says Thank You to entwisi For This Useful Post:
schettj's Avatar
Posts: 501 | Thanked: 292 times | Joined on Nov 2009
#2
yep, via dbus interface...

http://wiki.maemo.org/Phone_control

Code:
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
 

The Following 10 Users Say Thank You to schettj For This Useful Post:
schettj's Avatar
Posts: 501 | Thanked: 292 times | Joined on Nov 2009
#3
Followup: you probably could stream the mic and save yourself a phonecall, though....
 

The Following 2 Users Say Thank You to schettj For This Useful Post:
Posts: 207 | Thanked: 119 times | Joined on Nov 2009 @ Pittsburgh, PA, USA
#4
Originally Posted by entwisi View Post
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!!!!
Or It could be very good Trojan to your co-warker who don't know linux.....

Thanks for Idea!!!!!
 
Posts: 48 | Thanked: 8 times | Joined on Oct 2009
#5
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
 
Posts: 48 | Thanked: 8 times | Joined on Oct 2009
#6
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's Avatar
Posts: 501 | Thanked: 292 times | Joined on Nov 2009
#7
Yikes.... dunno how to hang up! Not sure a kill will do it.
 
Posts: 589 | Thanked: 54 times | Joined on Dec 2009 @ london
#8
omg this phone can be naughty lol.
 
schettj's Avatar
Posts: 501 | Thanked: 292 times | Joined on Nov 2009
#9
Ah.... OK, figured it out!

Code:
dbus-send --system --dest=com.nokia.csd.Call --print-reply \
/com/nokia/csd/call com.nokia.csd.Call.Release
That hangs it up. Yay!

Last edited by schettj; 2010-01-07 at 22:46.
 

The Following 5 Users Say Thank You to schettj For This Useful Post:
Jaffa's Avatar
Posts: 2,535 | Thanked: 6,681 times | Joined on Mar 2008 @ UK
#10
Originally Posted by schettj View Post
Ah.... OK, figured it out!
Can you make sure that's on the aforementioned wiki page, please?

TIA.
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
 

The Following 2 Users Say Thank You to Jaffa For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 05:15.