Hi, I have an integration kamailio-asterisk. I have many calls that don't pass through asterisk, kamailio route that calls to other media gateways. I would like to log those calls in asterisk CDR, is that possible? Could someone give me any direction? Thanks in advance.
Lucas
On 3/16/11 4:02 PM, Lucas Alvarez wrote:
Hi, I have an integration kamailio-asterisk. I have many calls that don't pass through asterisk, kamailio route that calls to other media gateways. I would like to log those calls in asterisk CDR, is that possible? Could someone give me any direction? Thanks in advance.
You may be able to pull this off using a MySQL stored procedure and/or a custom view that represents the Asterisk CDR table to Kamailio's ACC module.
It may prove to be difficult to match everything up exactly, due to the general differences between acc and asterisk cdr.
Jeremy McNamara
Have a look at the "canreinvite" parameter in asterisk and see if that helps you in any way.
On 16 Mar 2011, at 20:02, Lucas Alvarez lucasaa@gmail.com wrote:
Hi, I have an integration kamailio-asterisk. I have many calls that don't pass through asterisk, kamailio route that calls to other media gateways. I would like to log those calls in asterisk CDR, is that possible? Could someone give me any direction? Thanks in advance.
Lucas _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Lucas Alvarez wrote:
Hi, I have an integration kamailio-asterisk. I have many calls that don't pass through asterisk, kamailio route that calls to other media gateways. I would like to log those calls in asterisk CDR, is that possible? Could someone give me any direction? Thanks in advance.
You have to use acc module to account the transactions. Afterwards you have to correlate INVITE and BYE/CANCEL events to calls. This is not 00% reliable (Kamailio is just a proxy, not a B2BUA). You can use dialog module and a media relay to get more accurate accounting data. Anyway, for reliable CDRs I prefer a B2BUA, thus routing every call through a dedicated "Gateway-Asterisk" which does the accounting.
regards klaus