At this point I would run a packet sniffer on port 80 on your FS machine and confirm whether or not it's even attempting to contact your web server. Also, check to make sure you don't have IP tables or some other external process/device interfering with your FS trying to contact the web server. Last resort is to get a different box, re-install FS and try posting to a web server running on the same box. -MC On Fri, May 11, 2012 at 4:34 AM, Adrian Andrei <koralu@gmail.com> wrote:
I made a test that calls cdr.php and the $_POST['cdr'] is bigger(5Mb) than the cdr generated localy by FS and it works. I don't think is a problem of webserver.
Ty On 5/11/12, Sergey Okhapkin <sos@sokhapkin.dyndns.org> wrote:
How do you run php on web server? I got a problem recently with fresh mod_fcgid, in default configuration POST request size is limited to 128M now.
On Friday 11 May 2012 11:41:23 Adrian Andrei 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
_________________________________________________________________________ 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
_________________________________________________________________________ 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