Re: [Asterisk-java-users] Anyone used RedirectAction to transfer calls?
Brought to you by:
srt
From: Jan E. <jan...@pl...> - 2005-07-26 13:11:45
|
On Tuesday 26 July 2005 15:59, Stefan Reuter wrote: > Hi Jan, > > > I'm looking at initiating a call to a > > third party (using OriginateAction) and then transfer the call to a VoIP > > 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. No, it's more likely that I miss something. I haven't yet used OriginateAction in real code, just tried to grok what the parameters do. I believe you when you say it can be done. :) I'll just dive in and start using OriginateAction and play with the different parameters. The whole world of SIP can be a bit confusing sometimes. > > Has anyone tried this and got it to work? Doing it like this would allow > > 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 it > 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/asterisk >/impl/AsteriskPlugin.java?r=1.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. Ah, I'll certainly have a closer look at ADM. The code looks very clean (just as Asterisk-Java) and I guess it can teach me a trick or two. Thanks for the pointer! -- Jan Ekholm jan...@pl... |