maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   start a call via command line? (https://talk.maemo.org/showthread.php?t=39649)

entwisi 2010-01-07 21:21

start a call via command line?
 
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 2010-01-07 21:25

Re: start a call via command line?
 
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

schettj 2010-01-07 21:27

Re: start a call via command line?
 
Followup: you probably could stream the mic and save yourself a phonecall, though....

mikhmv 2010-01-07 21:29

Re: start a call via command line?
 
Quote:

Originally Posted by entwisi (Post 458124)
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 2010-01-07 21:43

Re: start a call via command line?
 
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 2010-01-07 21:51

Re: start a call via command line?
 
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 2010-01-07 22:10

Re: start a call via command line?
 
Yikes.... dunno how to hang up! Not sure a kill will do it.

mysticrokks 2010-01-07 22:29

Re: start a call via command line?
 
omg this phone can be naughty lol.

schettj 2010-01-07 22:42

Re: start a call via command line?
 
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!

Jaffa 2010-01-07 23:01

Re: start a call via command line?
 
Quote:

Originally Posted by schettj (Post 458308)
Ah.... OK, figured it out!

Can you make sure that's on the aforementioned wiki page, please?

TIA.

schettj 2010-01-07 23:09

Re: start a call via command line?
 
Quote:

Originally Posted by Jaffa (Post 458344)
on the aforementioned wiki page

good point - done.

crabsody 2010-03-27 14:27

Re: start a call via command line?
 
Quote:

Originally Posted by schettj (Post 458143)
Followup: you probably could stream the mic and save yourself a phonecall, though....

Does anyone know how can we achieve this?


All times are GMT. The time now is 17:36.

vBulletin® Version 3.8.8