Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] design of XML structure


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
ser at man.szczecin.pl
Guest





PostPosted: Tue Dec 23, 2008 9:27 am    Post subject: [Freeswitch-users] design of XML structure Reply with 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
Back to top
msc at freeswitch.org
Guest





PostPosted: Tue Dec 23, 2008 9:45 am    Post subject: [Freeswitch-users] design of XML structure Reply with quote

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. Smile

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





PostPosted: Tue Dec 23, 2008 10:28 am    Post subject: [Freeswitch-users] design of XML structure Reply with quote

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 Smile

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





PostPosted: Tue Dec 23, 2008 5:32 pm    Post subject: [Freeswitch-users] design of XML structure Reply with quote

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





PostPosted: Tue Dec 23, 2008 7:10 pm    Post subject: [Freeswitch-users] design of XML structure Reply with quote

yeah, vim and emacs will always be available as your GUI. Wink
-MC

On Tue, Dec 23, 2008 at 2:31 PM, Jason White <jason@jasonjgw.net (jason@jasonjgw.net)> wrote:
Quote:
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 (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
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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

VoiceMeUp - Corporate & Wholesale VoIP Services