DISA - Additional Security Feature Help


I was able to configure DISA and working fine. Now i would like to add a new security feature like, first it should authenticate the caller-id number and then authenticate with password (double level security). Is it possible? If yes, what are the changes i need to do in below working configuration? Please help.

Below is my working configuration:

;DISA Configuration
exten => 1110,1,Answer
exten => 1110,2,Authenticate(1234)
exten => 1110,3,DISA(no-password|custom-disa-out)

include => outgoing

exten => _NXXXXXXXXX,1,Dial(ZAP/g2/1${EXTEN})
exten => _NXXXXXXXXX,2,Hangup


its simple in same context like ur incoming context u can check incoming caller callerid like this,
exten => s,n(fim),GotoIf($[${LEN(${CALLERID(num)})} = 4]?yes:no)
This is for if incoming call who need to dail out call thru DISA check caller id length if false congested
exten => s,n(fim),GotoIf($[${LEN(${CALLERID(num)})} = 10]?yes:no)
Out sider caller checking

exten => s,n(fim),GotoIf($[${CALLERID(num)} = “21277882224”]?yes:no)
this is caller id pass them to further step for DISA


Check out voip-info.org/tiki-index.php … thenticate my examples are still there, they will need updating for 1.4 a bit but not too much to do. it lets you have a universal system as the cli and passkey are stored in the astdb