261
edits
No edit summary |
(Added category) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Category:Telephony]] | |||
Here you will find dialplan snippets and audio files for two Asterisk based Telemarketer Traps: | Here you will find dialplan snippets and audio files for two Asterisk based Telemarketer Traps: | ||
Line 5: | Line 6: | ||
== Lenny == | == 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/[https://www.reddit.com/r/itslenny/ itslenny] subreddit. | 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/[https://www.reddit.com/r/itslenny/ itslenny] subreddit. He even addresses Reddit with a new recording on Soundcloud at https://soundcloud.com/user-138243492/lenny-says-hi-reddit-for-2017 | ||
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 === | === Files === | ||
[[ | [[Media:Lenny.tgz|Lenny Sound Files]] | ||
=== Dial plan config === | === Dial plan config === | ||
==== Original ==== | |||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
; Lenny the telemarketer and annoying call trap. | ; Lenny the telemarketer and annoying call trap. | ||
Line 28: | Line 30: | ||
same => n,Hangup() | same => n,Hangup() | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== Variant 1 ==== | |||
Another variation of the above. Uncomment the ExecIf line to record the calls | |||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
[Lenny] | [Lenny] | ||
Line 37: | Line 39: | ||
same => n,BackgroundDetect(Lenny/backgroundnoise,1500) | same => n,BackgroundDetect(Lenny/backgroundnoise,1500) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== Variant 2 ==== | |||
The following will work on older versions of Asterisk | |||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
[Lenny] | [Lenny] | ||
Line 53: | Line 55: | ||
exten => s,n,Hangup() | exten => s,n,Hangup() | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== Remix ==== | |||
u/jzsmart3 on Reddit from the Lenny topic above posted a "remix" for those who call again. You can read about this here: https://www.reddit.com/r/itslenny/comments/5lcfwq/comment/dd8p7h4/?context=3 | |||
<syntaxhighlight lang="text"> | |||
[Lenny-second] | |||
; Map New Sequence: | |||
; 1 - 1: Hello, this is Lenny. | |||
; 2 - 9: Sorry, again. | |||
; 3 - 10: Could you say that again please? | |||
; 4 - 2: Sorry, I can barely hear you there. | |||
; 5 - 10: Could you say that again please? | |||
; 6 - 6: Sorry, what was your name again? | |||
; 7 - 9: Sorry, again. | |||
; 8 - 10: Could you say that again please? | |||
; 9 - 9: Sorry, again. | |||
; 10 - 12: Sorry, which company did you say you were calling from again? | |||
; 11 - 8: I'm sorry, I couldn't quite catch you there. What was that again? | |||
; 12 - 9: Sorry, again. | |||
; 13 - 2: Sorry, I can barely hear you there. | |||
; 14 - 10: Could you say that again please? | |||
; 15 - 9: Sorry, again. | |||
; 16 - 16: Well that does sound good, you have been patient with the old man here. [...] Ducks | |||
exten => talk,1,Set(i=${IF($["0${i}"="016"]?7:$[0${i}+1])}) | |||
same => n,Set(j=${i}) | |||
; Remap any differences | |||
;same => n,ExecIf($["${i}"="1"]?Set(j=1)) | |||
same => n,ExecIf($["${i}"="2"]?Set(j=9)) | |||
same => n,ExecIf($["${i}"="3"]?Set(j=10)) | |||
same => n,ExecIf($["${i}"="4"]?Set(j=2)) | |||
same => n,ExecIf($["${i}"="5"]?Set(j=10)) | |||
;same => n,ExecIf($["${i}"="6"]?Set(j=6)) | |||
same => n,ExecIf($["${i}"="7"]?Set(j=9)) | |||
same => n,ExecIf($["${i}"="8"]?Set(j=10)) | |||
;same => n,ExecIf($["${i}"="9"]?Set(j=9)) | |||
same => n,ExecIf($["${i}"="10"]?Set(j=12)) | |||
same => n,ExecIf($["${i}"="11"]?Set(j=8)) | |||
same => n,ExecIf($["${i}"="12"]?Set(j=9)) | |||
same => n,ExecIf($["${i}"="13"]?Set(j=2)) | |||
same => n,ExecIf($["${i}"="14"]?Set(j=10)) | |||
same => n,ExecIf($["${i}"="15"]?Set(j=9)) | |||
;same => n,ExecIf($["${i}"="16"]?Set(j=16)) | |||
same => n,Playback(Lenny/Lenny${j}) | |||
same => n,BackgroundDetect(Lenny/backgroundnoise,1500) | |||
</syntaxhighlight>They are using <code>same => n,Set(DB(lenny/${CALLERID(num)})=1)</code> to keep track of repeat callers. | |||
== Asty Crapper == | == Asty Crapper == |