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 <[email protected]>  
wrote:

> 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
> [email protected]
> 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
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Reply via email to