Asterisk PBX Telemarketer Traps: Difference between revisions

Jump to navigation Jump to search
Added Asterisk dialplan scripts for Lenny
(Created initial page)
 
(Added Asterisk dialplan scripts for Lenny)
Line 8: Line 8:


You can read it here under "[https://www.reddit.com/r/itslenny/comments/5lcfwq/lennys_history_why_he_isnt_creative_commons/ 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).  
You can read it here under "[https://www.reddit.com/r/itslenny/comments/5lcfwq/lennys_history_why_he_isnt_creative_commons/ 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 ===
=== Dial plan config ===
<syntaxhighlight lang="text">
; 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()
</syntaxhighlight>
* The following will work on older versions of afterisk
<syntaxhighlight lang="text">
[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()
</syntaxhighlight>


== Asty Crapper ==
== Asty Crapper ==

Navigation menu