[Spce-user] adding new user preferences

Skyler skchopperguy at gmail.com
Wed Sep 7 13:13:02 EDT 2011


Hi Andreas,

On Wed, 2011-09-07 at 18:49 +0200, Andreas Granig wrote:
> Hi,
> 
> On 09/07/2011 06:33 PM, Skyler wrote:
> >  I am wondering, if the below insert creates a 'checkbox', how would I
> > modify this to create a 'dropdown' with a few choices instead?
> 
> Drop-Downs are a special case which currently require separate handling
> in the code, for example search for "block_in_mode" in
> /usr/share/ngcp-www-admin/lib/admin/root/tt/subscriber_preferences.tt.
> Same for radio buttons.
> 
> There are no plans yet to change this in the near future, but if someone
> with some perl/catalyst knowledge can come up with a more flexible
> solution which allows for adding drop-downs etc. dynamically as well,
> we'll be more than happy to accept patches :)
> 
> I guess this would require a slight redesign of the
> provisioning.voip_preferences table structure to be able to hold the
> content of radio/dropdown elements.
> 
> Andreas

 Hrmm, I see what you mean. Instead, I could use the same dbase settings
as peer_auth_realm and have a text field. Its a bit clunky and would
need more instructions but more importantly, can I still query from
within LOAD_PREFERENCES to check this value in proxy.cfg? ... and this
value can be available to change via API right?

Skyler





More information about the Spce-user mailing list