Hello I tried to set up mod_xml_cdr but it doesn't work at all. I made the following steps: - Uncomment mod_xml_cdr in modules.conf. - Ok - Edit conf/autoload_configs/modules.conf.xml. - OK - Load mod_xml_cdr from CLI - NO errors - My *xml_cdr.conf.xml* looks like: <configuration name="xml_cdr.conf" description="XML CDR CURL logger"> <settings> <param name="url" value="http://localhost/xml-cdr/cdr.php"/> <param name="retries" value="2"/> <param name="delay" value="120"/> <param name="log-http-and-disk" value="true"/> <param name="log-dir" value="/usr/local/freeswitch/log/cdr"/> <param name="err-log-dir" value="/usr/local/freeswitch/log/cdr/errors"/> </settings> </configuration> (The php files are from contrib/trixter/xml-cdr.) In some posts I read that if log-dir and err-log-dir are changed from "default" I should set also the log-http-and-disk. But it doesn't work. Wiki said that I should check the freeswitch.xml to see if it is included xml_cdr.conf.xml but I can't find any line with xml_cdr.conf.xml. The version of freeswitch is FreeSWITCH Version 1.0.head (git-2c52f23 2012-02-18 08-37-47 -0600) so I think is new enough to have this feature available. Could anyone help me to find out what I'm missing? Are any commands in FS in order to run a mod_cdr_xml debug? Ty in advance.
Are you getting files on disk? -MC On Tue, May 8, 2012 at 11:48 AM, Adrian Andrei <koralu@gmail.com> wrote:
Hello
I tried to set up mod_xml_cdr but it doesn't work at all. I made the following steps:
- Uncomment mod_xml_cdr in modules.conf. - Ok - Edit conf/autoload_configs/modules.conf.xml. - OK - Load mod_xml_cdr from CLI - NO errors - My *xml_cdr.conf.xml* looks like:
<configuration name="xml_cdr.conf" description="XML CDR CURL logger"> <settings> <param name="url" value="http://localhost/xml-cdr/cdr.php"/> <param name="retries" value="2"/> <param name="delay" value="120"/> <param name="log-http-and-disk" value="true"/> <param name="log-dir" value="/usr/local/freeswitch/log/cdr"/> <param name="err-log-dir" value="/usr/local/freeswitch/log/cdr/errors"/> </settings> </configuration>
(The php files are from contrib/trixter/xml-cdr.)
In some posts I read that if log-dir and err-log-dir are changed from "default" I should set also the log-http-and-disk. But it doesn't work.
Wiki said that I should check the freeswitch.xml to see if it is included xml_cdr.conf.xml but I can't find any line with xml_cdr.conf.xml. The version of freeswitch is FreeSWITCH Version 1.0.head (git-2c52f23 2012-02-18 08-37-47 -0600) so I think is new enough to have this feature available.
Could anyone help me to find out what I'm missing? Are any commands in FS in order to run a mod_cdr_xml debug?
Ty in advance.
Hello, Thank you for answer but I am not getting any files on disk. When I disable mod_cdr_xml the logs are saved naturally in freeswitch/log. Ty
Check permissions of log-dir and error-log-dir. Owner and group also. 2012/5/9 Adrian Andrei <koralu@gmail.com>
Hello,
Thank you for answer but I am not getting any files on disk. When I disable mod_cdr_xml the logs are saved naturally in freeswitch/log.
Ty
_________________________________________________________________________ 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
I check the permission of both directorys and is ok. I check the webserver logs and FS calls my php "http://localhost/xml-cdr/cdr.php" but the POST['cdr'] is empty. I tried to log manually the content of POST['cdr'] to local file and is blank. Also nothing is saved in log-dir on disk. On 5/9/12, Wojtek Kochanowski <kochanowski.wojtek@gmail.com> wrote:
Check permissions of log-dir and error-log-dir. Owner and group also.
2012/5/9 Adrian Andrei <koralu@gmail.com>
Hello,
Thank you for answer but I am not getting any files on disk. When I disable mod_cdr_xml the logs are saved naturally in freeswitch/log.
Ty
_________________________________________________________________________ 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
In my case there's an empty value, like this: <param name="log-dir" value=""/> which means /usr/local/freeswitch/log/cdr-csv.
Ok but the $_POST['cdr'] is empty. I tried diffrent methods to check this and is true. Please if you have some advice to debug I appriciate. On 5/8/12, Adrian Andrei <koralu@gmail.com> wrote:
Hello
I tried to set up mod_xml_cdr but it doesn't work at all. I made the following steps:
- Uncomment mod_xml_cdr in modules.conf. - Ok - Edit conf/autoload_configs/modules.conf.xml. - OK - Load mod_xml_cdr from CLI - NO errors - My *xml_cdr.conf.xml* looks like:
<configuration name="xml_cdr.conf" description="XML CDR CURL logger"> <settings> <param name="url" value="http://localhost/xml-cdr/cdr.php"/> <param name="retries" value="2"/> <param name="delay" value="120"/> <param name="log-http-and-disk" value="true"/> <param name="log-dir" value="/usr/local/freeswitch/log/cdr"/> <param name="err-log-dir" value="/usr/local/freeswitch/log/cdr/errors"/> </settings> </configuration>
(The php files are from contrib/trixter/xml-cdr.)
In some posts I read that if log-dir and err-log-dir are changed from "default" I should set also the log-http-and-disk. But it doesn't work.
Wiki said that I should check the freeswitch.xml to see if it is included xml_cdr.conf.xml but I can't find any line with xml_cdr.conf.xml. The version of freeswitch is FreeSWITCH Version 1.0.head (git-2c52f23 2012-02-18 08-37-47 -0600) so I think is new enough to have this feature available.
Could anyone help me to find out what I'm missing? Are any commands in FS in order to run a mod_cdr_xml debug?
Ty in advance.
Check /etc/hosts file. Sometimes the localhost entry is not present. Make sure it is there and pointing to 127.0.0.1 or use 127.0.0.1 explicitly in the config file. On Thu, May 10, 2012 at 6:27 PM, Adrian Andrei <koralu@gmail.com> wrote:
Ok but the $_POST['cdr'] is empty. I tried diffrent methods to check this and is true. Please if you have some advice to debug I appriciate.
On 5/8/12, Adrian Andrei <koralu@gmail.com> wrote:
Hello
I tried to set up mod_xml_cdr but it doesn't work at all. I made the following steps:
- Uncomment mod_xml_cdr in modules.conf. - Ok - Edit conf/autoload_configs/modules.conf.xml. - OK - Load mod_xml_cdr from CLI - NO errors - My *xml_cdr.conf.xml* looks like:
<configuration name="xml_cdr.conf" description="XML CDR CURL logger"> <settings> <param name="url" value="http://localhost/xml-cdr/cdr.php"/> <param name="retries" value="2"/> <param name="delay" value="120"/> <param name="log-http-and-disk" value="true"/> <param name="log-dir" value="/usr/local/freeswitch/log/cdr"/> <param name="err-log-dir" value="/usr/local/freeswitch/log/cdr/errors"/> </settings> </configuration>
(The php files are from contrib/trixter/xml-cdr.)
In some posts I read that if log-dir and err-log-dir are changed from "default" I should set also the log-http-and-disk. But it doesn't work.
Wiki said that I should check the freeswitch.xml to see if it is included xml_cdr.conf.xml but I can't find any line with xml_cdr.conf.xml. The version of freeswitch is FreeSWITCH Version 1.0.head (git-2c52f23 2012-02-18 08-37-47 -0600) so I think is new enough to have this feature available.
Could anyone help me to find out what I'm missing? Are any commands in FS in order to run a mod_cdr_xml debug?
Ty in advance.
_________________________________________________________________________ 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
Same result. I tried both 127.0.0.1 and localhost. etc/hosts is valid. On 5/10/12, Muhammad Naseer Bhatti <nbhatti@gmail.com> wrote:
Check /etc/hosts file. Sometimes the localhost entry is not present. Make sure it is there and pointing to 127.0.0.1 or use 127.0.0.1 explicitly in the config file.
On Thu, May 10, 2012 at 6:27 PM, Adrian Andrei <koralu@gmail.com> wrote:
Ok but the $_POST['cdr'] is empty. I tried diffrent methods to check this and is true. Please if you have some advice to debug I appriciate.
On 5/8/12, Adrian Andrei <koralu@gmail.com> wrote:
Hello
I tried to set up mod_xml_cdr but it doesn't work at all. I made the following steps:
- Uncomment mod_xml_cdr in modules.conf. - Ok - Edit conf/autoload_configs/modules.conf.xml. - OK - Load mod_xml_cdr from CLI - NO errors - My *xml_cdr.conf.xml* looks like:
<configuration name="xml_cdr.conf" description="XML CDR CURL logger"> <settings> <param name="url" value="http://localhost/xml-cdr/cdr.php"/> <param name="retries" value="2"/> <param name="delay" value="120"/> <param name="log-http-and-disk" value="true"/> <param name="log-dir" value="/usr/local/freeswitch/log/cdr"/> <param name="err-log-dir" value="/usr/local/freeswitch/log/cdr/errors"/> </settings> </configuration>
(The php files are from contrib/trixter/xml-cdr.)
In some posts I read that if log-dir and err-log-dir are changed from "default" I should set also the log-http-and-disk. But it doesn't work.
Wiki said that I should check the freeswitch.xml to see if it is included xml_cdr.conf.xml but I can't find any line with xml_cdr.conf.xml. The version of freeswitch is FreeSWITCH Version 1.0.head (git-2c52f23 2012-02-18 08-37-47 -0600) so I think is new enough to have this feature available.
Could anyone help me to find out what I'm missing? Are any commands in FS in order to run a mod_cdr_xml debug?
Ty in advance.
_________________________________________________________________________ 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
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
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
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
/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
If I add another line in php file like fwrite($writefile, 'test') the output is "testtesttest" which is correct. So I don't think is a problem of write permission. I already put all the rights permission to cdr.php. ty for answer. On 5/11/12, huseyin kalyoncu <hkalyoncu@gmail.com> wrote:
/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
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
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
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
"interfering":This word points me to the right direction. I tried to call another webserver and it works. Thank you MC for the advice. On Fri, May 11, 2012 at 6:28 PM, Michael Collins <msc@freeswitch.org> wrote:
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
_________________________________________________________________________ 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
Good, because we were running out of things to try! :) -MC On Fri, May 11, 2012 at 12:36 PM, Adrian Andrei <koralu@gmail.com> wrote:
"interfering":This word points me to the right direction. I tried to call another webserver and it works. Thank you MC for the advice.
On Fri, May 11, 2012 at 6:28 PM, Michael Collins <msc@freeswitch.org>wrote:
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
participants (6)
-
Adrian Andrei
-
huseyin kalyoncu
-
Michael Collins
-
Muhammad Naseer Bhatti
-
Sergey Okhapkin
-
Wojtek Kochanowski