I’ve got the Blacklist Loser module working. Calls transferred to ring group 666 get blacklisted. When the user calls back, they get routed to Lenny.
I would like to enhance this with a couple of things
Right now, when I transfer, I’d like there to be a recording that says, “we are having trouble with hearing you. Please call back again”. Then it would go to the blacklist.
Wnen the user calls back, I would like to record their “experience” with Lenny.
My extensions_custom.conf looks like this now:
[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)
Thanks. I see it in the syntax now. I don’t know how to play them back without downloading. I’ve looked around the web interface but couldn’t find a link to play them.
I’d also like to know how to play an announcement as I am transferring.
You can blacklist the last caller base on caller ID by dialing *32. The Blacklist Loser module provides the feature to blacklist when sending to a ring group.
I have it setup different, no need to install any module.
Add the below in extensions_custom.conf
[from-internal-xfer]
exten => 53669,1,Answer
same => n,Set(DB(blacklist/${CALLERID(number)})=1)
same => n,Ringing
same => n,Wait(9)
same => n,Goto(Lenny,talk,1)
Anyone transfers to 53669 (LENNY), that dialplan answers, blacklists the CallerID, plays a ringback tone for 9 seconds so the caller thinks they are actually transferred to a human, and then goes to the Lenny dialplan.
By default, all Lenny calls are being recorded, so your calls are probably recorded as well.
Check the /var/spool/asterisk/monitor/ folder, it’s probably there, the files are named with the unique call ID.
P.S. The dialplan I have is probably not the best, and can probably be written more elegant.