Adding a custom modification to the extension__20-baseplan.conf

VitalPBX Community Support General Discussion Adding a custom modification to the extension__20-baseplan.conf

  • Post
    DannyLarsen
    Participant
    none

    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
Viewing 7 replies - 1 through 7 (of 7 total)
  • Replies
    DannyLarsen
    Participant
    none
    Up
    0
    Down

    Looks like the extensions__20-baseplan.conf does not get overwritten on a reload so I left my modification there

    Still not sure if that is the correct method

    Thanks

    0
    Up
    0
    Down

    (+), means that extend an existing context, and is possible to add new functionalities to it.

    0
    DannyLarsen
    Participant
    none
    Up
    0
    Down

    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
    Up
    0
    Down

    I made a test appending an extension to sub-local-dialing context:

    1. Create a file under /etc/asterisk/ombutel, called extensions__30-baseplan.conf
    2. 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
    DannyLarsen
    Participant
    none
    Up
    0
    Down

    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 LIST

    I will re test

    Thanks

     

     

    0
    Up
    0
    Down

    Those DID’s are pointing to different numbers? 

    0
    DannyLarsen
    Participant
    none
    Up
    0
    Down

    Yes they all go to unique destinations, so I modified this to play an announcement on all incoming calls

    It works fine, just having trouble getting it into the “30” file

    0
Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.