O'Reilly logo

FreeSWITCH 1.6 Cookbook by Giovanni Maruzzelli, Michael S Collins, Anthony Minessale II

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using a web server to handle XML CDRs

One feature of FreeSWITCH's mod_xml_cdr is that it can use HTTP POST actions to send CDR data to a web server, which in turn can process them, and perhaps put them into a database. This mechanism has several advantages:

  • Modern web servers can handle enormous amounts of traffic
  • Multiple FreeSWITCH servers can post to a single CDR Server
  • Multiple web servers can be set up to allow failover and redundancy

It will automatically retry in the event of a failure, on the same web server or on another web server. Eventually, if all the retries on all the web servers fail, it will write to the disk so that the record can be processed later.

The recipe presented here will focus on the steps needed to get a web server set ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required