Ticket #3088 (new Feature Requests)

Opened 5 years ago

Last modified 4 years ago

add enable/dissabled setting to freepbx_featurecodes.conf

Reported by: mbrevda Assigned to:
Priority: minor Milestone: Undetermined
Component: Feature Code Admin Version: 2.5-branch
Keywords: Cc:
Confirmation: Confirmed Distro:
Backend Engine: All Distro Ver:
Backend Ver: SVN Revision (if applicable):

Change History

08/19/08 10:36:43 changed by p_lindheimer

  • owner deleted.
  • confirmation changed from Unreviewed to Confirmed.
  • component changed from - choose - to Feature Code Admin.
  • milestone changed from 2.5 to 3.0.

That may be doable. The each modules initially set it and the way it was designed, if you add or change freepbx_featurecodes.conf after the fact, it will change the defaults while not changing any overrides you have already done. Since each module creates the intial featurecode, as long as you don't change whether it is enabled or not if it has already been created, then this would be a good addition.

As the current format looks like the following as an example:

[donnotdisturb]
dnd_on = *78
dnd_off = *79

[findmefollow]
fmf_toggle = *21

I would suggest the way to change it would be an optional value following the code, maybe separated by a ',' and if there is nothing there then we behave as today and if there is a value of enabled/disabled we set it to that if creating for the first time. (And be flexible, accept other values like enable/disable, on/off, true/false and yes/no to think of a few - case insensitive).

So it would look something like this:

[donnotdisturb]
dnd_on = *78,enable
dnd_off = *79,off

[findmefollow]
fmf_toggle = *21,on

So ... if you want to have a go at it we can even see about slipping it into 2.5 still since it is a fairly obscure feature that is new so there is no existing base to break and as long as none of the code is ever executed if they don't have the file then the risk is low. However, for now moving to next milestone unless some work goes on.

08/18/09 17:44:59 changed by p_lindheimer

  • milestone changed from 2.6 to 2.7.