Asterisk PBX Telemarketer Traps: Difference between revisions

From KG7QIN's Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 27: Line 27:
  same => n,BackgroundDetect(Lenny/backgroundnoise,1500)
  same => n,BackgroundDetect(Lenny/backgroundnoise,1500)
  same => n,Hangup()
  same => n,Hangup()
</syntaxhighlight>
* Another variation of the above.  Uncomment the ExecIf line to record the calls
<syntaxhighlight lang="text">
[Lenny]
exten => talk,1,Set(i=${IF($["0${i}"="016"]?7:$[0${i}+1])})
; same => n,ExecIf($[${i}=1]?MixMonitor(${UNIQUEID}.wav))
same => n,Playback(Lenny/Lenny${i})
same => n,BackgroundDetect(Lenny/backgroundnoise,1500)
</syntaxhighlight>
</syntaxhighlight>



Revision as of 18:06, 14 January 2023

Here you will find dialplan snippets and audio files for two Asterisk based Telemarketer Traps:

  • Lenny
  • Asty Crapper

Lenny

Lenny is everyone's favorite senile old man. Back in 2017, the author of Lenny posted the history of the recordings to Reddit's r/itslenny subreddit.

You can read it here under "Lenny's history and why he isn't Creative Commons". The author goes into the history of the recordings and why he hasn't released it under the Creative Commons license (spoiler, wants to keep his anonymity).

Files

File:Lenny.tgz

Dial plan config

; Lenny the telemarketer and annoying call trap.
[Lenny]
exten => s,1,wait(1)
 same => n,Log(VERBOSE, Caller ${CALLERID(all)} being passed to Lenny, poor sucker.)
 same => n,Wait(1)
 same => n,Ringing
 same => n,Wait(3)
 same => n,Answer()
 same => n,Wait(2)
 same => n,Set(i=${IF($["0${i}"="016"]?7:$[0${i}+1])})
 same => n,Playback(Lenny/Lenny${i})
 same => n,BackgroundDetect(Lenny/backgroundnoise,1500)
 same => n,Hangup()
  • Another variation of the above. Uncomment the ExecIf line to record the calls
[Lenny]
exten => talk,1,Set(i=${IF($["0${i}"="016"]?7:$[0${i}+1])})
; same => n,ExecIf($[${i}=1]?MixMonitor(${UNIQUEID}.wav))
 same => n,Playback(Lenny/Lenny${i})
 same => n,BackgroundDetect(Lenny/backgroundnoise,1500)
  • The following will work on older versions of afterisk
[Lenny]
exten => s,1,Answer()
exten => s,n,Log(VERBOSE, Caller ${CALLERID(all)} being passed to Lenny, poor sucker.)
exten => s,n,Wait(2)
exten => s,n,Ringing
exten => s,n,Wait(3)
exten => s,n,Answer()
exten => s,n,Wait(2)
exten => s,n,Set(i=${IF($["0${i}"="016"]?7:$[0${i}+1])})
exten => s,n,Playback(Lenny/Lenny${i})
exten => s,n,BackgroundDetect(Lenny/backgroundnoise,1500)
exten => s,n,Hangup()

Asty Crapper

The Asty Crapper is something I found referred to on Reddit one day when looking up something in r/itslenny. It is an old (and crude/NSFW) telemarketer trap that was released under the GPL.

The original website is long gone, but you can find it on the Wayback Machine at https://web.archive.org/web/20110317063218/http://www.linuxsystems.com.au/astycrapper/