Re: [Asterisk-java-users] Anyone used RedirectAction to transfer calls?
Brought to you by:
srt
From: Stefan R. <sr...@re...> - 2005-07-26 12:59:12
|
Hi Jan, > I'm looking at initiating a call to a > third party (using OriginateAction) and then transfer the call to a VoI= P > client application that the user already runs. What do you need the redirect for? If you want to connect the third party to the VoIP application (i.e. hard or softphone) you might do this directly with the OriginateAction... maybe I am missing something here. > Has anyone tried this and got it to work? Doing it like this would allo= w > me to initiate calls from within my application and basically have it > work with any SIP client. Nevertheless you can certainly use the RedirectAction. Last time I used i= t was a few days ago for the upcoming Asterisk Desktop Manager (ADM). You can browse the relevant sources at http://adm.hamnett.org/fisheye/viewrep/ADM/adm/src/org/hamnett/adm/asteri= sk/impl/AsteriskPlugin.java?r=3D1.23 dial() and redirect() methods start around line 200. ADM allows you to originate calls to your phone (or sip client or what ever) via OriginateAction (ADM calls that Quick Dial) and allows you to redirect any active call to or from your phone to another extension (via RedirectAction). So maybe that might be an example for you to look at. Happy coding, Stefan |