Thanks for the patch.
At quick look, it seems that the event route will be called twice in case of a dialog
lifetime timeout. At line 1408 in dlg_handlers.c, the event route code is executed again
after dlg_bye_all() and dlg_bye_all() executes inside the event route code. Might be an
option to remove it from that place.
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/246#issuecomment-121721788