Skip to content
/ jail2net Public

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.

Notifications You must be signed in to change notification settings

ageis/jail2net

Repository files navigation

jail2net

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.

###Requirements:

Asterisk, lame, Python, PHP, Bash, soundcloud-python, twitteroauth, a DID number and SIP provider

###Instructions:

  1. Purchase a DID (telephone number) from a SIP provider. I recommend VoIP.ms
  2. Install Asterisk and configure your sip.conf. Set context= to default.
  3. Clone this repository to /opt/jail2net
  4. chown -R asterisk:asterisk /opt/jail2net
  5. apt-get install lame and pip install soundcloud
  6. Move *.gsm files to /usr/share/asterisk/sounds
  7. Make process.sh, post.py and tweet.php executable using chmod +x
  8. Edit post.py and insert your SoundCloud API details for client_id, client_secret, username, password
  9. Change the track title as desired
  10. Edit tweet.php and insert your Twitter API details for $consumerKey, $consumerSecret, $oAuthToken and $oAuthSecret
  11. Change the status message as desired
  12. Move extensions.conf to /etc/asterisk, edit and insert your DID, set up access control and DTMF tone if needed
  13. 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.

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published