Hi
I've got a mediaproxy that detects no media, and sends dlg_end_dlg to Kamailio via mi_datagram socket. Then Kamailio sends BYE to both calling parties. It all works fine. But my question is, how to do accounting for these Kamailio-generated BYEs? They don't appear in the acc table.
I'm using Kamailio 3.1.5.
Thank you very much!
Yufei -- Yufei Tao Red Embedded
This E-mail and any attachments hereto are strictly confidential and intended solely for the addressee. If you are not the intended addressee please notify the sender by return and delete the message.
You must not disclose, forward or copy this E-mail or attachments to any third party without the prior consent of the sender.
Red Embedded Design, Company Number 06688253 Registered in England: The Waterfront, Salts Mill Rd, Saltaire, BD17 7EZ
On 02/27/2012 12:58 PM, Yufei Tao wrote:
Hi
I've got a mediaproxy that detects no media, and sends dlg_end_dlg to Kamailio via mi_datagram socket. Then Kamailio sends BYE to both calling parties. It all works fine. But my question is, how to do accounting for these Kamailio-generated BYEs? They don't appear in the acc table.
In the loose_route() section of the config script, set the accounting flag for BYEs, e.g.
if(is_method("BYE")) setflag(xx);