2 Stage Dialing

I am running Asterisk 1.4 on a system and I would like to configure 2 stage dialing, but with a bit of a twist.

  1. When a call comes in I want the caller to hear a message like “please dial 11 to continue your call”.
  2. Once they hit 11 the call connects, and if they don’t the call will terminate/end.

The whole reason behind this is to stop robo calls from filling up our PBX and causing us issues with CDR’s.

Is there a way to do this?

Cheers!
Dave

exten=>_x.,1,Answer()
same=>n,Read(answ,/var/lib/asterisk/sounds/mysound,2,3)
same => n,GotoIf($["${answ}"= “11”]?human,s,1)
same=>n,Hangup()

This example works on Asterisk current version of Asterisk , I’m not sure if work on Asterisk 1.4

It won’t because you have to use | instead of ,

So do I replace | with all the , ?

Also I am pretty sure “same” does not work with 1.4 I think you need exten, right?