maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Transfer call? (https://talk.maemo.org/showthread.php?t=44835)

Fredrik75 2010-02-17 12:21

Transfer call?
 
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

Fredrik75 2010-02-23 19:45

Re: Transfer call?
 
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

Alan_Peery 2010-02-24 08:40

Re: Transfer call?
 
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?

Alan_Peery 2010-02-24 10:07

Re: Transfer call?
 
Quote:

Originally Posted by Alan_Peery (Post 543911)
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.

Fredrik75 2010-03-02 09:08

Re: Transfer call?
 
1 Attachment(s)
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

deter3 2010-03-02 16:33

Re: Transfer call?
 
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 ?

Fredrik75 2010-03-02 18:41

Re: Transfer call?
 
Quote:

Originally Posted by deter3 (Post 552609)
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


All times are GMT. The time now is 21:44.

vBulletin® Version 3.8.8