Thread: Transfer call?
View Single Post
Posts: 11 | Thanked: 6 times | Joined on Feb 2010
#5
Yes, it's strange that call forwarding is'nt in the phone-application...

I've done a temporary solution that atleast works for me... :-)
I have a icon on the desktop for transfer the call.

I've borrowed some python-code from someone who did a ussd-application (can't find the post now).

A little howto for this ugly hack (it needs python and pexpect):
Code:
apt-get install pexpect
Create a /usr/local/bin/callforward.py :
Code:
#!/usr/bin/python

import pexpect
import time

child = pexpect.spawn('pnatd');
child.send('at\r');
time.sleep(0.25);
child.send('AT+CHLD=4\r');
time.sleep(0.25);

child.sendeof();
Create /usr/sudoers.d/callforward.sudoers :
Code:
user ALL = NOPASSWD: /usr/local/bin/callforward.py
And run:
Code:
update-sudoers
I did a very nice icon for the program as well (the attachment)
Place it in /usr/share/icons/hicolor/48x48/hildon

Create /usr/share/applications/hildon/callforward.desktop :
Code:
[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Terminal=true
Name=Forward Call
Exec=osso-xterm "/usr/bin/sudo /usr/local/bin/callforward.py"
Icon=callforward
X-Window-Icon=
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable
Not a pretty solution, but it works for now...

/Fredrik
Attached Images