› VitalPBX Community Support › General Discussion › Adding a custom modification to the extension__20-baseplan.conf › Reply To: RE: Adding a custom modification to the extension__20-baseplan.conf
-
- April 2, 2018 at 6:17 pm
Okay I must be making a mistake, my user has 100 DID’s so I need to add “this call may be monitored etc….” to all DID’s
So I am adding a blacklist modification to /etc/asterisk/ombutel/extensions__30-baseplan.conf
(works in the extensions__20-baseplan.conf)
[sub-check-blacklist](+)
exten => s,1,Playback(silence/1)
exten => s,2,Playback(this-call-may-be-monitored-or-recorded)
exten => s,3,NoOp(Testing if ${ARG2} is in Black List)
same => n,GotoIf(${DB_EXISTS(${ARG1}/blacklist/${ARG2})}?banned)
same => n,Return
same => n(banned),NoCDR()
same => n,Answer()
same => n,Playback(privacy-you-are-blacklisted&goodbye,skip)
same => n,Hangup()
;END of [sub-in-blacklist]
;——————————————————————-
;END BLACK LISTI will re test
Thanks
0