Failed CDR resubmit freeswitch

sokalsondha

New Member
Nov 6, 2019
21
1
3
hello everyone.
i need some idea what i can do in this scenario.
what i have now is

ASTPP+db = Server A
Freeeswitch= Server B

so when i make call i my call is working fine in the server-B but the problem is
before the call end if the server-A goes offline for some reason then once the call finish i can see in the fs_cli that
freeswitch can't submit the CDR because the server-A is offline.
here is the log

2020-07-12 20:43:32.857967 [ERR] mod_json_cdr.c:396 Got error [500] posting to web server [http://XXX.XXX.XXX.XXX:8735/cdr.php]
2020-07-12 20:43:32.857967 [ERR] mod_json_cdr.c:415 Unable to post to web server
2020-07-12 20:43:32.857967 [INFO] mod_json_cdr.c:208 Backup file /var/log/freeswitch/json_cdr/41148d98-f975-4527-aaed-bb17ad90001e.cdr.json

i think i need a bash script which will resubmit the all failed CDR

can someone please help?

thanks a million and please stay safe