Re: [Asterisk-java-users] how to put on HOLD and redirect a call?
Brought to you by:
srt
From: lumen <lu...@bu...> - 2007-10-15 16:52:27
|
On Mon, Oct 15, 2007 at 12:02:22PM +0200, m....@ad... send: > > > Hi all, > I'm new to asterisk and I'm trying to control my pbx server using AGI > i can easily play sounds, ask for user input and so on, but I could'n find > how to put on hold and redirect a the call to another number (i.e. "press 1 > if you want to speak to CEO" -> put the call on hold, let the CEO phone > ring, play a welcome message ("hi, CEO, there is an incoming call for you") > and then let the parties speak together. You are working from FAGI or AMI ? On solution is to use meetme conferences: 1. Send the current call to context that ends on meetme conference. 2. Call the second party and do stuff with him. 3. Send the second party to the same conference. The above has the inconvenience that the call is in coference. It complicates thigs like fetures or billing. See Redirect Action of AMI. I _think_ that to OriginateAction of AMI you can specify an existing channel. This way you can (repeat that I not test it) : 1. Do stuff with the current call and put on hold. 2. Generate an Originate Action and set as destination a macro that do suff with him. As the other destination, put the existing channel that is on hold. 3. At the end of the macro, I _think_ both channels get bridget. > I guess I would use the Dial command, but could not find any examples on > how to do this step by step...probabily I'm too newbie to implement such an > advanced functionality and I need to study asteriks deeper.... yes, probably. But you can study with targets like this. |