Intro
Okay... So... It's 5:30 in the AM, you just went to bed an hour ago and a Telemarker calls you causing you to wake from your slumber.
You look through your call records and blacklist the number.
But that isn't enough for you.
You want revenge!
You want to cause so much pain that they never call you back again!
<Insert long dramatic pause here>
Who hasn't this happened to?
Introducing the Joshua Wargames script!
Call your enemies back and play an annoying sound file over and over and over again!
They will bow to your feet!*
Download
View Source Online | The "Joshua" Soundfile | The Whole Shebang
Install
Remember to chmod your index file and /var/spool/asterisk/outgoing/ folder to 777
On some platforms you may need to chown both to whatever username apache runs as
In asterisk you need to edit your extensions to include the following:
[outbound-voipbuster]
exten => s,1,Answer
exten => s,n,Wait(1)
exten => s,n,Background(vm-enter-num-to-call)
exten => s,n,Read(destination)
exten => s,n,Playback(pls-wait-connect-call)
exten => s,n,Dial(SIP/1${destination}@voipbuster)
exten => s,n,Hangup
I use voipbuster for placing all of my calls. You can change it to whatever method you like in the source.
[wargames]
exten => s,1,SetVar(CALLFILENAME=${TIMESTAMP}-${CALLERIDNUM})
exten => s,n,Monitor(gsm,${CALLFILENAME},m)
exten => s,n,Answer
exten => s,n,Monitor(gsm,wargames_${CALLFILENAME},m)
exten => s,n,Playback(joshua)
exten => s,n,Hangup
This is setup to cover recording the call. Who doesn't like hearing the sound of a telemarketer yelling back at the machine?
Conclusion
I wrote this at 5:30 in the morning and there may be bugs in it.
Currently I notice that when placing multiple calls the script has to finish before it displays the success message. If you can fix this it would be much appreciated.
*This product has not been tested by the FDA and has been known to cause mass hysteria