Put all authorized CallerID into Asterisk database (on cli: database put allowedcaller 1234567 1) and then do a lookup, whether CallerID is allowed. (1234567 is CallerID)
exten => s,1,SetVar(allowed=0)
exten => s,2,DBget(allowed=allowedcaller/${CALLERID})
exten => s,3,GotoIf($[${allowed}]?5)
exten => s,4,Hangup ; Hangup if not in "allowedcaller" list
exten => s,5, do anything for allowed callersRegards bt
George Burt schrieb:
I have an application that I want to be able to verify that the call coming in on a PSTN 800 number is from an authorized caller.
I want to read the CallerId then terminate the call without answering it.
exten => s,1,Wair(3) exten => s,2,NoOp(${CALLERID}) exten => s,3,Hangup()
Any ideas would be appreciated.
George
_______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
