Asterisk PBX Telemarketer Traps: Difference between revisions

Jump to navigation Jump to search
no edit summary
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>


Navigation menu