Configure AI bot Lenny in FreePBX (and asterisk) Create if not exist: /etc/asterisk/extensions_custom.conf then add: [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) Next, Upload the Lenny sound files from Lenny_soundfiles.zip to /var/lib/asterisk/sounds/Lenny Then in FreePBX go to Admin/Custom Destination, add new Destination Target: Lenny,talk,1 Desc: Lenny Next, create the directory used to store Lenny's calls... mkdir /var/spool/asterisk/monitor/Lenny chown asterisk.asterisk /var/spool/asterisk/monitor/Lenny Lastly, configure Inbound Routes, use a DID with destination to " Custom Destinations: Lenny " Remember to click apply, and reload freepbx/aserisk.