Preserve CDR Unique Across Multiple Servers

Home » Asterisk Users » Preserve CDR Unique Across Multiple Servers
Asterisk Users 4 Comments

Hi.

I am using two servers in my configuration: one for phones registration and another one as gateway, where all the providers are connected. Both are connected through an IAX trunk. I am having some trouble on matching both CDR’s, since durations for a call are not always the same in both servers, start/end date time are sometimes also different, etc.

Is there any way to send the uniqueid of the original call, maybe through the IAX trunk, and get it on the gateway server to save it in the final CDR’s userfield? That way they would match by that field.

Thank you in advance.


Rui Mota

4 thoughts on - Preserve CDR Unique Across Multiple Servers

  • Check out the “uniqueid” parameter in cdr.conf and cdr_adaptive_odbc.conf.

    John V.

    From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Rui Mota Sent: Friday, June 26, 2015 7:05 AM
    To: asterisk-users@lists.digium.com Subject: [asterisk-users] Preserve CDR unique across multiple servers

    Hi.

    I am using two servers in my configuration: one for phones registration and another one as gateway, where all the providers are connected. Both are connected through an IAX trunk.

    I am having some trouble on matching both CDR’s, since durations for a call are not always the same in both servers, start/end date time are sometimes also different, etc.

    Is there any way to send the uniqueid of the original call, maybe through the IAX trunk, and get it on the gateway server to save it in the final CDR’s userfield? That way they would match by that field.

    Thank you in advance.

  • Hi,

    We use sip headers to send the linkedid across servers, and place it into CDR as remoteLinkedId

  • I had that same issue but I use SIP not IAX. What I ended up doing was adding a SIP CALL ID field in custom_cdr module and setting it in the dialplan.

    Remi