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);