› VitalPBX Community Support › General Discussion › Adding a custom modification to the extension__20-baseplan.conf
- This topic has 7 replies, 2 voices, and was last updated 2 years, 9 months ago by
DannyLarsen.
- Post
-
- March 27, 2018 at 7:36 pm
I need to make a small change to one of the modules of the extensions__20-baseplan.conf
If I create an extensions__30-baseplan.conf
with
[sub-whatever-module] (+)
custom stuff here …..
It doesn’t get read on a reload, what is the correct way to add an overide
Thanks
0
- Replies
-
- April 2, 2018 at 5:15 pm
- April 2, 2018 at 5:26 pm
- April 2, 2018 at 5:35 pm
Yes I understand the (+) usage
Should I be adding an additonal file like extensions__30-baseplan.conf
If I add this file extensions__30-baseplan.conf with
[sub-whatever-module] (+)
custom stuff here
The fields are not read on a reload
However if I make the changes to the file extensions__20-baseplan.conf directly they are read and function correctly
0- April 2, 2018 at 6:02 pm
I made a test appending an extension to sub-local-dialing context:
- Create a file under /etc/asterisk/ombutel, called extensions__30-baseplan.conf
- Paste the following Content:
[sub-local-dialing](+)
exten => 9000,1,Noop(Demo)
same => n,Hangup()3. Save the File
4. Reload the asterisk dialplan: asterisk -rx”dialplan reload”
The result of my test is attached
0- 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- April 2, 2018 at 6:32 pm
- April 2, 2018 at 6:42 pm
- You must be logged in to reply to this topic.