Re: [Asterisk-java-users] Anyone used RedirectAction to transfer calls?
Brought to you by:
srt
|
From: Stefan R. <sr...@re...> - 2005-07-26 13:25:23
|
> 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.
Just try it.
set channel to the channel you use to dial your sip client, like
setChannel("SIP/username");
then set context, extension and priority to the dial plan entry that will
dial the third party like
setContext("outbound");
setExtension("123456"); // number of the third party
setPriority(new Integer(1));
and finally set async to Boolean.TRUE if you are interested in the
OriginateSuccess and OriginateFailure events.
> 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 fo=
r
> the
> pointer!
Thanks, thats nice to hear :)
=3DStefan
|