[Freeswitch-users] mod_xml_cdr: reporting back errors from curl posts

Faraz R. Khan faraz.khan at emergen.biz
Tue Jul 8 03:10:04 PDT 2008


I have made a PHP script which processes the XML and feeds it into my DB.

Is there anyway to return error codes from the PHP script? die() or 
exit(1) or echo 'Error' do not work. Is mod_xml_cdr expecting some 
defined format or a return?

I am testing it by observing the console. I have also set log-err path 
in xml_cdr.conf to / but XMLs are not being generated even if I 
deliberately cause an error on the PHP side.

btw- LOVE the 'callflow'  part of the xml tree! simply amazing. My 
script can 'follow through' calls

thanks

-- 
Faraz R Khan
Chief Architect
Emergen Consulting Pvt Ltd
+92.21.529.0381 x200
www.emergen.biz





More information about the FreeSWITCH-users mailing list