Asterisk PBX Telemarketer Traps: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 52: Line 52:
exten => s,n,BackgroundDetect(Lenny/backgroundnoise,1500)
exten => s,n,BackgroundDetect(Lenny/backgroundnoise,1500)
exten => s,n,Hangup()
exten => s,n,Hangup()
</syntaxhighlight>
* u/jzsmart3 on Reddit from the Lenny topic above posted a "remix" for those who call again.  Info 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>
</syntaxhighlight>


Navigation menu