[Freeswitch-users] design of XML structure

Seweryn Niemiec ser at man.szczecin.pl
Tue Dec 23 06:20:17 PST 2008


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






More information about the FreeSWITCH-users mailing list