Thanks I will look at that -- nice to have an example. Michael Collins <msc@freeswitch.org> wrote:
On Fri, Sep 24, 2010 at 1:29 AM, <covici@ccs.covici.com> wrote:
OK, thanks for that -- so am I correct that the XML will appear as standard input to the script? And I guess I will have to write out the .csv myself which will be a pain, but its really convenient to have that.
I think it depends on your environment but yes, usually it comes in via STDIN. You are probably better off using CGI.pm than manually hacking the input. Since this question has come up more than once I created a simple Perl CGI script that gets called from a Web server. More info here: http://wiki.freeswitch.org/wiki/Mod_xml_cdr#Example_CGI_Script
Tinker with that and see if it helps you with handling your CDRs. -MC
---------------------------------------------------- Alternatives:
---------------------------------------------------- _______________________________________________ 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
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici covici@ccs.covici.com