Rui Mota
2015-Jun-26 11:04 UTC
[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. -- Rui Mota -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150626/8216a9c9/attachment.html>
Tech Support
2015-Jun-26 13:52 UTC
[asterisk-users] 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 at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Rui Mota Sent: Friday, June 26, 2015 7:05 AM To: asterisk-users at 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. -- Rui Mota -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150626/a873510b/attachment.html>
Rui Mota
2015-Jun-26 14:18 UTC
[asterisk-users] Preserve CDR unique across multiple servers
I am already using the unique in both servers, but both generate different id?s, but i am unable to get the original one from the gateway box to store it in the final CDR? -- Rui Mota Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Friday 26 June 2015 at 14:52, Tech Support wrote:> Check out the ?uniqueid? parameter in cdr.conf and cdr_adaptive_odbc.conf. > John V. > > From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Rui Mota > Sent: Friday, June 26, 2015 7:05 AM > To: asterisk-users at lists.digium.com (mailto:asterisk-users at 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. > > > > -- > > Rui Mota > > > > > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150626/74d3c3cd/attachment.html>
Remi Quezada
2015-Jun-26 18:23 UTC
[asterisk-users] Preserve CDR unique across multiple servers
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 On 06/26/2015 07:04 AM, Rui Mota wrote:> 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 > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150626/b7338507/attachment.html>