Black list module enhancement
I would like to have control of how a call that is blacklisted is handled.
The default handling is that the call comes in, is checked against the list and if blacklisted then the call be answeded the zapateller service runs and the caller will hear ss-noservice then the call is hung-up
OEM Code
exten => s,1,GotoIf($["${BLACKLIST()}"="1"]?blacklisted)
exten => s,n,Return()
exten => s,n(blacklisted),Answer
exten => s,n,Wait(1)
exten => s,n,Zapateller()
exten => s,n,Playback(ss-noservice)
exten => s,n,Hangup
I would like to have the blacklist module expanded so from the gui options could be set for
1. Recording to play
2. Email or email address to send a log of the missed call to
3. A dialog box to edit the email text in
The Recording would be built the with the system recordings tool just like for the IVR’s and Announcements
For the emails please have a box entry field that will allow several names. Maybe if could use the same input form as the recordings screen where you can add more lines
The dialog box so you can edit the message and have a helper box with relevant variables codes so for the people that do not know them can read and add in to the message. Items like ${VM_DATE}, ${CALLERID(all)}, and ${EXTEN} with a brief description
Code I edited into extensions_override_freepbx.conf
[app-blacklist-check]
include => app-blacklist-check-custom
exten => s,1,GotoIf($["${BLACKLIST()}"="1"]?blacklisted)
exten => s,n,Return()
exten => s,n(blacklisted),Answer
exten => s,n,Wait(1)
exten => s,n,Zapateller()
exten => s,n,NoOp(${CALLERID(all})
exten => s,n,system(echo "At ${VM_DATE} an incoming connection from ${CALLERID(all)} to ${EXTEN} was stopped by the phone system" | mailx -s "Block list" email@company.com)
exten => s,n,Playback(ss-noservice)
exten => s,n,Hangup
Member Since:
2010-06-15