How to use xml_cdr command

Status
Not open for further replies.

minhtan1581

New Member
Mar 22, 2018
6
0
1
27
Hi there,
Fusionpbx 4.4.1 ; Freeswitch 1.8.6 ; Debian 9.9
I have file xml_cdr.conf.xml
<param name="url" value="http://127.0.0.1/app/xml_cdr/v_xml_cdr_import.php"/>
<param name="cred" value="Uhu7mgti8YC2xys2:1zMeO3p2XJrNzNwg"/>
<param name="log-dir" value=""/>
<param name="log-b-leg" value="false"/>
<param name="prefix-a-leg" value="true"/>
<param name="encode" value="true"/>
<param name="disable-100-continue" value="true"/>
<param name="err-log-dir" value="/tmp/log"/>
<!-- <param name="auth-scheme" value="any"/> -->

When nginx stops, the call log will stay /tmp/log/a_3bc723b8-9fb9-11e9-90b3-7b2326e195aa.cdr.xml (urlencode)
I have try to import to fs by command:
curl --request POST --fail --data-urlencode /tmp/log/a_3bc723b8-9fb9-11e9-90b3-7b2326e195aa.cdr.xml http://127.0.0.1/app/xml_cdr/v_xml_cdr_import.php >/dev/null
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 61 0 0 100 61 0 3494 --:--:-- --:--:-- --:--:-- 3588

curl -X POST -f --any -u Uhu7mgti8YC2xys2:1zMeO3p2XJrNzNwg --data-urlencode /tmp/log/a_3bc723b8-9fb9-11e9-90b3-7b2326e195aa.cdr.xml http://127.0.0.1/app/xml_cdr/v_xml_cdr_import.php >/dev/null
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 61 0 0 100 61 0 3655 --:--:-- --:--:-- --:--:-- 3812

but I don't see any new data in the table v_xml_cdr
Someone may indicate an error or anything can help me ?? Thanks
 
Status
Not open for further replies.