Re: [Asterisk-java-users] Call redirection
Brought to you by:
srt
From: Jan E. <jan...@pl...> - 2005-09-30 05:57:09
|
After one of our guys that at least pretend to know Asterisk did some restructuring of the dialplans (for other reasons) it all started to work. Redirection now works as it should. Don't ask me what was wrong, I have no idea and neither did the guy. Oh well, I'm happy it works. :) On Monday 26 September 2005 11:27, Jan Ekholm wrote: > On Friday 23 September 2005 14:37, Jan Ekholm wrote: > > Hi, > > > > 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)); > > Weird is that I can do this and it works fine: > > redirect.setChannel ( channel.getLinkedChannel().getName() ); > > This does what it is supposed to do, ie redirect the channel to the new > "1001" extension. Of course, here I redirect the wrong channel (I redirect > the one that answered the original call, not the one that did the original > call), but why that one works and the real one doesn't is beyond me. > > However, I think this is one of those PEBKAC problems, as it seems to me > that Asterisk-Java sends the correct action to Asterisk and generally does > seem to do the right thing. Maybe a channel that has been already > redirected once (to the answering operator) can't be redirected, but that > doesn't add up as I can do the redirect on the actual hardware phone (dial > "#" and "1001") and that works fine. So it's something I probably don't > grok about extensions and/or contexts. > > Personally I wonder why the VoIP/PBX world has got to be so complex... :) -- Jan Ekholm jan...@pl... |