Using the Asterisk Manager how would you do the following?

Using the Asterisk Manager how would you do the following?

  1. Call a number.
  2. Hang-up if it does not connect after 20 seconds.
  3. If connects, connect to specific extension.

I was thinking originate the call to a call queue, then monitor the events and see if it connects the call. If it connects, send it to the specific extension.

If the dials for more than 20 seconds, send a hang-up action

  1. So use the originate action to call a number and send it to a call queue.
  2. Monitor call to see if the phone answers. Using events.
  3. Redirect the call to the specific extension if it does answer.
  4. Use the hang-up action if over 20 seconds and no connects.

Does anyone know if there is an easier way? I was hoping to avoid sending a call to a call queue, but I guess it has to go somewhere.

Bryan

Does anyone know the command to make an outbound call and have the call land in a queue once it answers.

Once it connects then I will send it directly to an extension. I am making a simple dialer for users.

I don’t want the user to have to pick up the phone first.

Action:Originate
Channel:Local/7145551212@internal
MaxRetries:3;
WaitTime:30
RetryTime:30
Context:from-internal
Exten:205
Priority:1
Timeout:10000

Calling 7145551212
I want to send it to queue 205 when it connects.

Bryan

Right now, you’re sending the originated call to:

Context:from-internal
Exten:205
Priority:1

which would mean it’s going to your dialplan extension 205, priority 1, in context from-internal, e.g.

[from-internal]
exten => 205,1,whatever you've got

So, make sure that extension 205 in context from-internal is dropped into the Queue application.

Cheers.