View Single Post
laasonen's Avatar
Posts: 565 | Thanked: 618 times | Joined on Jun 2010 @ Finland
#7
Made little script to make, answer and reject calls

Just set your phone's IP address and ssh keys (reverse).
Code:
#!/bin/sh
IP="10.0.0.240"; #Phones ip
do=$(zenity  --list  --text "What do you want to do?" --radiolist  --column "Pick" --column "Action" TRUE Call FALSE End FALSE Answer);
if [ $do = "Call" ]; then
	NUMBER=$(zenity --entry --text "Phone number" --entry-text "");
	ssh user@$IP 'dbus-send --system --type=method_call --print-reply --dest=com.nokia.csd.Call /com/nokia/csd/call com.nokia.csd.Call.CreateWith string:'$NUMBER' uint32:0';
elif [ $do = "End" ]; then
	ssh user@$IP 'dbus-send --system --print-reply --dest=com.nokia.csd.Call /com/nokia/csd/call com.nokia.csd.Call.Release';
elif [ $do = "Answer" ]; then
	ssh user@$IP 'dbus-send --system --print-reply --dest=com.nokia.csd.Call /com/nokia/csd/call/1 com.nokia.csd.Call.Instance.Answer';
fi


There is also N900 Notifier.


Last edited by laasonen; 2011-03-16 at 00:31.
 

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