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