/var/www/xml-cdr/dump.txt file must have write permission for web server user (if its other than root) On Fri, May 11, 2012 at 11:41 AM, Adrian Andrei <koralu@gmail.com> wrote:
When mod_xml_cdr is reloaded nothing apear in /usr/local/freeswitch/log/cdr/errors.
When uncomment <param name="log-http-and-disk" value="true"/> the cdr apears in /usr/local/freeswitch/log/cdr an I think that the process of logging cdr it works.
But the problem is that the $_POST['cdr'] contain nothing.
My php is as simple as possible: <?php $raw_cdr = $_POST['cdr']; $writefile = fopen('/var/www/xml-cdr/dump.txt',"a+"); fwrite($writefile, $raw_cdr); fclose($writefile); ?>
When FS calls cdr.php it creats dump.txt but is empty.
Ty
On 5/10/12, Michael Collins <msc@freeswitch.org> wrote:
Anything in /usr/local/freeswitch/log/cdr/errors ?
-MC
On Thu, May 10, 2012 at 11:39 AM, Adrian Andrei <koralu@gmail.com> wrote:
The logs are:
2012-05-10 21:37:03.399431 [CONSOLE] switch_loadable_module.c:1765 Stopping: mod_xml_cdr 2012-05-10 21:37:03.399431 [NOTICE] switch_event.c:1935 Event Binding deleted for mod_xml_cdr:TRAP 2012-05-10 21:37:03.399431 [CONSOLE] switch_loadable_module.c:1785 mod_xml_cdr unloaded. 2012-05-10 21:37:05.459437 [NOTICE] mod_xml_cdr.c:99 Rotating log file paths
+OK module unloaded +OK Reloading XML +OK module loaded
2012-05-10 21:37:05.459437 [NOTICE] mod_xml_cdr.c:126 Setting log file path to /usr/local/freeswitch/log/cdr 2012-05-10 21:37:05.459437 [NOTICE] mod_xml_cdr.c:164 Setting err log file path to /usr/local/freeswitch/log/cdr/errors 2012-05-10 21:37:05.459437 [CONSOLE] switch_loadable_module.c:1299 Successfully Loaded [mod_xml_cdr] freeswitch@peer1> 2012-05-10 21:37:05.459437 [INFO] mod_enum.c:812 ENUM Reloaded 2012-05-10 21:37:05.479431 [INFO] switch_time.c:1035 Timezone reloaded 530 definitions
On Thu, May 10, 2012 at 9:17 PM, Michael Collins <msc@freeswitch.org>wrote:
On Thu, May 10, 2012 at 8:45 AM, Adrian Andrei <koralu@gmail.com>
wrote:
Same result. I tried both 127.0.0.1 and localhost. etc/hosts is
valid.
what happens when you go to fs_cli and type: reload mod_xml_cdr
I'm curious. -MC
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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