Kamailio 5.4 Send CDR data to an API endpoint

214 views Asked by At

I wonder if there is a way to send the cdr data from kamailio server to an API endpoint.

I have a kamailio server with acc and dialog modules to produce cdr records.

I don't want to log the CDR in a database backend after the call terminates. I would rather prefer to send a POST request to local nodejs API that does the call rating logic using the http_async_client.

Is there a way to access the cdr data after the BYE transaction in the kamailio script ? I don't find the variable where the cdr data is stored.

Thank you

1

There are 1 answers

1
os11k On

If you are using defualt config, I would try to send HTTP request when FLT_ACC* flag is set at least this would be my starting point.