VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
ser at man.szczecin.pl Guest
|
Posted: Tue Dec 23, 2008 9:27 am Post subject: [Freeswitch-users] design of XML structure |
|
|
Hi,
Wy there is so many ugly constructions in FS configuration files? For
example configuration of a gateway looks like this:
<include>
<gateway name="asterlink.com">
<param name="username" value="cluecon"/>
<param name="realm" value="asterlink.com"/>
<param name="from-user" value="cluecon"/>
...
This is not good structure design. I know that it gives extreme
flexibility for developers, but config files are for admins not software
developers. IMHO it should look like this:
<include>
<gateway name="asterlink.com">
<username>cluecon</username/>
<realm>asterlink.com</realm/>
<from-user>cluecon</from-user/>
...
Such structure + schema file would be a great help in configuration
editing (autocompletion and syntax check).
greetings,
Seweryn
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Tue Dec 23, 2008 9:45 am Post subject: [Freeswitch-users] design of XML structure |
|
|
Hehe, you just stepped on a land mine! There was A LOT of discussion
about this. The simple fact of the matter is that there was no way to
make everyone happy so the devs chose a layout that might be "ugly" to
some. The key is that XML isn't really "pretty" anyway. The point of
XML is that it needs to be machine readable AND human readable. Since
humans are (usually) smarter than machines it was decided that machine
readable is more important. Besides, when all of the GUIs get built
you won't be hacking XML very much - if at all.
I promise you this: even if you think something is weird or curious
about how FreeSWITCH works there is ALWAYS a good reason for the
design decisions. Always. Nothing in FS was left to chance or caprice.
-MC
PS - this was probably a better topic for the -dev list.
Sent from my iPhone
On Dec 23, 2008, at 6:20 AM, Seweryn Niemiec <ser@man.szczecin.pl>
wrote:
Quote: | Hi,
Wy there is so many ugly constructions in FS configuration files? For
example configuration of a gateway looks like this:
<include>
<gateway name="asterlink.com">
<param name="username" value="cluecon"/>
<param name="realm" value="asterlink.com"/>
<param name="from-user" value="cluecon"/>
...
This is not good structure design. I know that it gives extreme
flexibility for developers, but config files are for admins not
software
developers. IMHO it should look like this:
<include>
<gateway name="asterlink.com">
<username>cluecon</username/>
<realm>asterlink.com</realm/>
<from-user>cluecon</from-user/>
...
Such structure + schema file would be a great help in configuration
editing (autocompletion and syntax check).
greetings,
Seweryn
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
ser at man.szczecin.pl Guest
|
Posted: Tue Dec 23, 2008 10:28 am Post subject: [Freeswitch-users] design of XML structure |
|
|
On Tue, 2008-12-23 at 06:42 -0800, Michael S Collins wrote:
Quote: | Hehe, you just stepped on a land mine! There was A LOT of discussion
|
ok. I promise that this my last post on this subject
Quote: | about this. The simple fact of the matter is that there was no way to
make everyone happy so the devs chose a layout that might be "ugly" to
some. The key is that XML isn't really "pretty" anyway. The point of
XML is that it needs to be machine readable AND human readable. Since
humans are (usually) smarter than machines it was decided that machine
readable is more important.
|
I like XML actually. IMHO xml with good editor and schema... there is
nothing better for config writer.
--
greetings,
Seweryn
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
jason at jasonjgw.net Guest
|
Posted: Tue Dec 23, 2008 5:32 pm Post subject: [Freeswitch-users] design of XML structure |
|
|
On Tue, Dec 23, 2008 at 06:42:50AM -0800, Michael S Collins wrote:
Quote: | Besides, when all of the GUIs get built
you won't be hacking XML very much - if at all.
|
And the XML will still be there for those of us who prefer editing
configuration files to using GUIs. I'm very much a Unix shell type of person.
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Tue Dec 23, 2008 7:10 pm Post subject: [Freeswitch-users] design of XML structure |
|
|
yeah, vim and emacs will always be available as your GUI.
-MC
On Tue, Dec 23, 2008 at 2:31 PM, Jason White <jason@jasonjgw.net (jason@jasonjgw.net)> wrote:
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|