I worked on something like this about a year ago.  It was a multi
tenant web gui that virtualized pretty much everything from extensions
to sip/iax users to voicemail.  What I found that worked fairly well
was to use a prefix for everything user specific with a format that
could easily be parsed.  I used a double underscore followed by a
username followed by a double underscore for the prefix, it worked
pretty well.  I had a couple of functions that would add the prefix
when writing the configuration to a database, and strip it when
displaying everything on the web.  I used a database schema for
storing the configuration data and when it was updated it would write
out the static asterisk files.

The configuration files get a bit more difficult to read, but the
upside is that users could define whatever names they want for things
like extensions and mailboxes without any naming clashes.
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to