Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Help about MediaWiki
FUTO
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Introduction to a Self Managed Life: a 13 hour & 28 minute presentation by FUTO software
(section)
Main Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Step 12: Install Lenny on FreePBX 17 == <span id="prepare-to-access-your-freepbx-system"></span> ==== 12.1 Prepare to Access Your FreePBX System ==== You need to SSH into the FreePBX VM to install Lenny. Open a terminal on your local machine and connect via SSH: <pre>ssh louis@192.168.5.6 su</pre> <span id="add-lennys-custom-context-in-asterisk"></span> ==== 12.2 Add Lenny’s Custom Context in Asterisk ==== <ol style="list-style-type: decimal;"> <li><p>Open the <code>extensions_custom.conf</code> file for editing:</p> <pre>nano /etc/asterisk/extensions_custom.conf</pre></li> <li><p>Add the following lines to define the Lenny context:</p></li></ol> <pre>[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)</pre> <ol start="3" style="list-style-type: decimal;"> <li>Save and exit the editor by pressing <code>Ctrl + X</code>, then <code>Y</code>, and <code>Enter</code>.</li></ol> <span id="download-lennys-sound-files"></span> ==== 12.3 Download Lenny’s Sound Files ==== Continue with the necessary steps to download and configure Lenny’s sound files as required. Lenny works by playing recorded audio. You’ll need to download these audio files to the correct directory on your FreePBX system. Download Lenny’s sound files [https://www.crosstalksolutions.com/pub/Lenny.zip from this link]. Crosstalk solutions is a hero for continuing to host this. Tell him thank you. <pre>cd /var/lib/asterisk/sounds/ wget https://www.crosstalksolutions.com/pub/Lenny.zip unzip Lenny.zip chown asterisk:asterisk /var/lib/asterisk/sounds/Lenny/* -R chmod -R 755 /var/lib/asterisk/sounds/Lenny/* -R</pre> <gallery mode="packed-hover" heights=250 widths=400 perrow=2> File:lu67917r1ezu_tmp_89b069de.png File:lu67917r1ezu_tmp_6b11bfcb.png File:lu67917r1ezu_tmp_410d95bf.png File:lu67917r1ezu_tmp_cdc425ee.png </gallery> <span id="create-a-custom-destination-in-freepbx"></span> ==== 12.4 Create a Custom Destination in FreePBX ==== # Log in to the FreePBX web interface. # Navigate to '''Admin > Custom Destinations'''. # Add a new custom destination with the following details: #* '''Custom Destination:''' <code>Lenny,talk,1</code> # This may be called TARGET instead of CUSTOM DESTINATION IN NEW VERSIONS #* '''Description:''' Lenny # Click '''Submit''' and then '''Apply Config''' to save the changes. <gallery mode="packed-hover" heights=250 widths=400 perrow=2> File:lu67917r1ezu_tmp_5e139a78.png File:lu67917r1ezu_tmp_35e121d2.png File:lu67917r1ezu_tmp_91b7118c.png File:lu67917r1ezu_tmp_77d50bb9.png File:lu67917r1ezu_tmp_c6db1985.png </gallery> <span id="set-lenny-as-a-destination"></span> ==== 12.5 Set Lenny as a Destination ==== You now have multiple options for how to use Lenny. * '''Manual Transfers to Lenny:''' ** Navigate to '''Connectivity —> Extensions''' ** Create a new '''Virtual Extension''' ** Set the extension to whatever you want it to be; this is the number you dial to get Lenny & the number you transfer people to for Lenny ** Click on the Advanced tab ** Scroll to the bottom for destinations when nobody answers. ** Set each of the three to '''Custom Destinations —> Lenny''' ** Enjoy transferring telemarketers to Lenny at his extension. :) <span id="reload-things-in-the-terminal."></span> ==== 12.6 Reload things in the terminal. ==== In your SSH terminal, type the following: <pre>fwconsole reload</pre> <blockquote>'''IMPORTANT:''' Hitting the red '''“Apply Config”''' button in the upper right corner of the FreePBX webpage is not enough here. For this to work, you must run <code>fwconsole reload</code> in the terminal. </blockquote> <span id="sending-blocked-numbers-to-lenny"></span> ==== 12.7 Sending blocked numbers to Lenny ==== # After hanging up on someone you hate, hit <code>*32</code> quickly which will block their number. # Navigate to '''Admin —> Blacklist'''. # Click onto '''Settings'''. # Set the '''Destination for BlackListed Calls''' to '''Custom Destination —> Lenny'''. Now every time you get a call from someone you hate, you can dial <code>*32</code> & they will be routed to Lenny as soon as they call back. But remember, in the words of one of my first recording studio job bosses in 2007 - ''“Louis, you hate nothing; you intensely dislike it!”'' <span id="step-12-hiring-a-virtual-receptionist-who-tells-annoying-people-to-get-the-fuck-outta-here"></span>
Summary:
Please note that all contributions to FUTO may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
FUTO:Copyrights
for details).
Do not submit copyrighted work without permission!
To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:
Cancel
Editing help
(opens in new window)