Luis I found that in `presentity` table dialog event is stored with `expires` equal 0. Think if ecallmgr will set this value equal leg timeout then this will resolve this issue.
Could you also confirm that need add function to ecallmgr like `make_sure_dialog_is_removed_on_kamailio`?