Reply
Thread Tools
Posts: 11 | Thanked: 6 times | Joined on Feb 2010
#1
Hi!

I need to be able to transfer a call, but the menu-option is missing from the Call-menu. I can chose to shift between the two calls and make it to a conference-call.

Do anyone know a way around this issue?
(Like the call forwarding-program from extras repository?)

/Fredrik
 
Posts: 11 | Thanked: 6 times | Joined on Feb 2010
#2
Ah, after a little research and testing i found a solution. Now I just need to implement it... :-)

I need to send:
Code:
AT+CHLD=4
That sends "connect held and active (or MO alerting) call with each other (locally both calls are disconnected)".

I've tried it out with a terminal and send it through pnatd and it works fine.

Now I just need to put a widget/button somewhere easy accessible from the call-program...

/Fredrik
 

The Following 3 Users Say Thank You to Fredrik75 For This Useful Post:
Posts: 247 | Thanked: 91 times | Joined on Jan 2008 @ London/M4 Corridor
#3
Adding the ability to forward phone calls to the N900 would be one of the best additions to functionality to date.

Ideally it should go in the phone menus alonside the "hold call" function, but I suspect that's code that is only in Nokia's hands. If we can't get it there, the next best place would be on the power button menu. I think there are some packages that add to this menu, but I can't remember which ones they are. This program should pop up a contact selection dialog, perhaps laid out as a scrolling grid like this:

Code:
Contact1            Mobile  
Contact2            Mobile   WorkMobile 
Contact3                                                 WorkPhone
where each available numbers is a separate button. (Skype contacts, etc., have been left off purposely as they are using a different transport and probably different mechanisms.)

Tapping one should lead to a full screen confirmation dialog to avoid significant social embarassment. This would then HOLD the first call, call the new number (probably via a DBUS commands to the phone application) so you can make an introduction, and change the action so that the next time the power button menu was chosen it would issue the command Fredrik75 has discovered.

Or should that all the GUI logic be dispensed with? Have the phone user make a second call, just like normal, to introduce the original caller-and then press the option added to the power button menu that would issue the command? The problem then becomes what to call the action, because it is not properly called "forwarding", as the action has already been started..."Leave conference"?

The second approach is much less work and gives the same functionality, but it's not the way that people will expect to forward a call.

Which is the best way to go, given that we really hope Nokia adds forwarding the the N900 properly in the Phone application?

Last edited by Alan_Peery; 2010-02-24 at 08:45. Reason: fix layout
 
Posts: 247 | Thanked: 91 times | Joined on Jan 2008 @ London/M4 Corridor
#4
Originally Posted by Alan_Peery View Post
I think there are some packages that add to this menu, but I can't remember which ones they are.
There's a discussion in thread http://talk.maemo.org/showthread.php?t=41020 of how to extend the power button menu.
__________________
--
If you don't know who the Eletronic Frontier
Foundation are, you should. Check out
http://www.eff.org.
 
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
 
 
Posts: 99 | Thanked: 25 times | Joined on Mar 2008 @ shanghai , China
#6
Just can not wait to put this widget on y desktop ! Is it possiable for us to do conference call among 3 people for both skype and normal call ?
 
Posts: 11 | Thanked: 6 times | Joined on Feb 2010
#7
Originally Posted by deter3 View Post
Just can not wait to put this widget on y desktop ! Is it possiable for us to do conference call among 3 people for both skype and normal call ?
This isn't really a widget, more a launcher for a script. :-)

This has nothing to do with skype, the ATCHLD=4 - command only activates the "forward call" feature provided in the gsm-network.

/Fredrik
 

The Following User Says Thank You to Fredrik75 For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 02:46.