Allows creation of a PBX to accept calls from prisoners and post their recorded messages on SoundCloud and Twitter. Makes the Bureau of Prisons really mad.
The idea is to set up a phone message box for prisoners that automatically sends the correct tone to accept their call, records a WAV which gets converted to an MP3, and uploads it to the Internet.
Asterisk, lame, Python, PHP, Bash, soundcloud-python, twitteroauth, a DID number and SIP provider
- Purchase a DID (telephone number) from a SIP provider. I recommend VoIP.ms
- Install Asterisk and configure your sip.conf. Set context= to default.
- Clone this repository to /opt/jail2net
chown -R asterisk:asterisk /opt/jail2net
apt-get install lameand
pip install soundcloud
- Move *.gsm files to /usr/share/asterisk/sounds
- Make process.sh, post.py and tweet.php executable using chmod +x
- Edit post.py and insert your SoundCloud API details for client_id, client_secret, username, password
- Change the track title as desired
- Edit tweet.php and insert your Twitter API details for $consumerKey, $consumerSecret, $oAuthToken and $oAuthSecret
- Change the status message as desired
- Move extensions.conf to /etc/asterisk, edit and insert your DID, set up access control and DTMF tone if needed
- Restart Asterisk and give the phone number to a prisoner. Have fun trolling the BOP!
It helps to know what number they'll be calling from and the digit you need to dial to accept their call.
This concept has been covered by Mashable. Mad props to Jaime Cochran for the idea and .py SoundCloud script. Prisoners should be informed of the risks; weev lost his phone privileges and was thrown in solitary for using this.