Hello,
to catch the local generated BYEs, you have to add event_route[tm:local-request] and there test if it is a BYE and if yes, use acc_db_request(...) to get the record in acc table.
For sake of completion, request_route {} is executed only for requests received from the network, not for those generated locally.
Cheers, Daniel
On 21/07/15 10:05, Dirk Teurlings - SIGNET B.V. wrote:
Hi again,
Running kamailio 4.2.5 with the acc module to do accounting in a MySQL database. We are now running into the issue that sometimes there is no BYE line when there is an INVITE.
Digging into this I noticed that the dialog:end event does get triggered, and that CNXCC consumes the call properly. So the BYE message does get sent, but acc doesn't seem to pick it up some of the times. It occurs around maybe once every 100 calls.
Anybody got any ideas about this?