The Following 11 Users Say Thank You to impeham For This Useful Post: | ||
|
2011-11-18
, 09:42
|
|
Posts: 4,365 |
Thanked: 2,467 times |
Joined on Jan 2010
@ Australia Mate
|
#3
|
The Following User Says Thank You to F2thaK For This Useful Post: | ||
|
2011-11-18
, 09:48
|
|
Posts: 855 |
Thanked: 612 times |
Joined on Oct 2010
@ Germany
|
#4
|
/home/user/ProximityAnswer/incomingcall.sh * * com.nokia.mce.signal sig_call_state_ind ringing normal /home/user/ProximityAnswer/callend.sh * * com.nokia.mce.signal sig_call_state_ind none normal
chmod 777 /home/user/ProximityAnswer/for-each-script
chmod +rwx /home/user/ProximityAnswer/for-each-script
The Following User Says Thank You to Alfred For This Useful Post: | ||
|
2011-11-18
, 10:36
|
|
Posts: 855 |
Thanked: 612 times |
Joined on Oct 2010
@ Germany
|
#5
|
The Following User Says Thank You to Alfred For This Useful Post: | ||
|
2011-11-18
, 11:28
|
|
Posts: 4,365 |
Thanked: 2,467 times |
Joined on Jan 2010
@ Australia Mate
|
#6
|
/home/user/MyDocs/proxyanswer/incomingcall.sh * * com.nokia.mce.signal sig_call_state_ind ringing normal /home/user/MyDocs/proxyanswer/callend.sh * * com.nokia.mce.signal sig_call_state_ind none normal
The Following User Says Thank You to F2thaK For This Useful Post: | ||
|
2011-11-18
, 12:37
|
Posts: 151 |
Thanked: 93 times |
Joined on Sep 2009
@ sofia, bulgaria
|
#7
|
/home/user/bin/ProximityAnswerScan * * com.nokia.mce.signal sig_call_state_ind ringing normal
chmod +x /home/user/bin/ProximityAnswerScan
/etc/init.d/dbus-script restart
The Following 3 Users Say Thank You to lidow For This Useful Post: | ||
|
2011-11-18
, 14:49
|
Posts: 669 |
Thanked: 433 times |
Joined on May 2010
|
#8
|
The Following 2 Users Say Thank You to impeham For This Useful Post: | ||
|
2011-11-18
, 21:50
|
Posts: 101 |
Thanked: 91 times |
Joined on Feb 2010
@ Dallas TX
|
#9
|
The Following User Says Thank You to Dr.Marcial For This Useful Post: | ||
|
2011-11-19
, 04:45
|
Posts: 1,225 |
Thanked: 1,905 times |
Joined on Feb 2011
@ Quezon City, Philippines
|
#10
|
Tags |
incoming calls, nokia n900 |
|
if the sensor is closed when the script is run (like if there's a call while the device is in the pocket) it will not answer but wait for an open state and only then it will answer on close state.
To use this feature you will have to set 2 dbus events invokes in "/etc/dbus-scripts.d/dbus-scripts-settings":
[scripts path]/incomingcall.sh * * com.nokia.mce.signal sig_call_state_ind ringing normal
[scripts path]/callend.sh * * com.nokia.mce.signal sig_call_state_ind none normal
Set the scripts to with execute permissions.
When a call comes, the incomingcall.sh is called, calling to the ProximityAnswerScan script.
When the call terminates, the callend.sh script is called which causes the ProximityAnswerScan to end.
After using it for some time now - it seems to be very comfortable way to answer calls - even when sometimes the device is not responsive when the call arrives.
Hope you'll like it too.
Last edited by impeham; 2012-03-01 at 18:49.