Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [cidlookup]
- exten=>_x.,1,Noop( checking the callerid ${CALLERID(num)})
- same=>n,Set(__cid=${SHELL(mysql --user=root --password='12340' --skip-column-names dialer -e 'select dnc_phone from dnc where dnc_phone="${CALLERID(num)}" limit 0,1 ')})
- same=>n,Noop( result ${cid:0:1})
- same => n,GotoIf($["${CALLERID(num)}"="${cid:0:-1}"]?allow:disallow)
- same=>n(allow),Playback(demo-thanks)
- same=>n,Hangup()
- same=>n(disallow),Playback(im-sorry)
- same=>n,Hangup()
Add Comment
Please, Sign In to add comment