[Freeswitch-users] mod_xml_cdr is not logging

Adrian Andrei koralu at gmail.com
Thu May 10 19:45:55 MSD 2012


Same result. I tried both 127.0.0.1 and localhost.  etc/hosts is valid.

On 5/10/12, Muhammad Naseer Bhatti <nbhatti at 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 at 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 at 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 at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list