Summary:ASTERISK-14983: [bounty] Redirect Caller After Hangup from Queue
Reporter:RobertB (bahjons)Labels:
Date Opened:2009-10-14 07:45:36Date Closed:2011-06-07 14:07:48
Versions:Frequency of
Description:This old thread explains the request:

We would like to be able to redirect the caller after the agent has ended the call, to another extension/context where we can have our survey run.

Bounty is $150. Needs to work on a Trixbox server as well.
Comments:By: Jason Parker (jparker) 2009-10-14 10:19:00

This isn't the place to post bounties.  If you have code you would like to contribute, then you can open a feature request.

As was stated in the thread you posted, you can easily use the 'h' extension for this.

By: RobertB (bahjons) 2009-10-14 13:07:31


According to BUG guidelines, it is.

And if you continue reading in the cited thread, others said that it wasn't possible. 'h' extension is excuted when the channel is already hung up. So how would that help in getting the caller over to another extension?


By: Elazar Broad (ebroad) 2009-10-14 13:30:23

Um, the following AEL snippet works fine for me:

context myqueue {
  h => {
    jump surveyivrexten@mysurvey;
  7000 => {
       queue code here...

context mysurvey {
 surveyivrexen => {
  survey ivr code here

In simpler terms, if 7000 were a standard extension, I call 7000, 7000 picks up, 7000 hangs up, whatever is under h will get executed, in my test, calling out to my cell. In the above example I put the survey under a different context otherwise you will end up in an infinite loop until the user hangs up.

By: RobertB (bahjons) 2009-10-14 14:12:46

Hmm, I'm not getting the same results.

Call routes to Queue(CSR), Agent 100 is in Queue(CSR), he picks up the phone, and hangs up. The call is ended on both ends. It doesn't jump to the 'h' extension.

Should the QUEUE app not be used to get this to function?

By: RobertB (bahjons) 2009-10-14 14:21:55

Nevermind. Just so long as the hangup hook is in the same context as the agents, it is fine. Thanks for the snippet.

By: Elazar Broad (ebroad) 2009-10-14 14:32:31

Configuration issue.