Guest User

Untitled

a guest
Dec 19th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. [cidlookup]
  2. exten=>_x.,1,Noop( checking the callerid ${CALLERID(num)})
  3. 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 ')})
  4. same=>n,Noop( result ${cid:0:1})
  5. same => n,GotoIf($["${CALLERID(num)}"="${cid:0:-1}"]?allow:disallow)
  6. same=>n(allow),Playback(demo-thanks)
  7. same=>n,Hangup()
  8. same=>n(disallow),Playback(im-sorry)
  9. same=>n,Hangup()
Add Comment
Please, Sign In to add comment