[Asterisk-java-users] Call redirection
Brought to you by:
srt
From: Jan E. <jan...@pl...> - 2005-09-23 11:37:08
|
Hi, I've had some problems getting a call to be programmatically redirected from one extension to another. I currently can have calls redirected from queues to an operator or some third party. This works fine, the call is redirected without any problems. However, when I want to let the operator redirect an call that has been answered I run into problems. The call is immediately hung up by Asterisk, and I don't know wether I use RedirectAction wrong or just don't understand something. I use code similar to this (version 0.2-rc1): RedirectAction redirect = new RedirectAction (); redirect.setChannel ( channel.getName() ); redirect.setExten ( "1001" ); redirect.setContext ("default"); redirect.setPriority (new Integer(1)); The "channel" is a Channel object. Similar code works fine for my direct redirect without answering in between. Redirection works fine when I do it using the hardware phones (Zyxel and Hitachi stuff), so there doesn't seem to be anything wrong on the Asterisk side either. The SIP accounts are configured to allow call redirections. Anyone stumbled onto this problem? Regards, Jan -- Jan Ekholm jan...@pl... |