[reSIProcate] Destroying a DialogUsage and its (App)Dialog(Set)s without actually "ending" it
Hi,
I'd like to be able to destroy all traces of a dialog set (for
example, an InviteSession and its
AppDialogSet/AppDialog/DialogSet/Dialog) without having to call
DialogUsage::end().
Here's my use case: cleanup everything related to a call (INVITE)
*without* having it send a BYE. This would be similar to doing a force
shutdown on the DUM instance, but on a per call basis.
The current InviteSession::end() method seems to always send a BYE,
which is perfectly fine, but I'd like to have a way to bypass it.
I started looking into DialogUsageManager::destroy(...) and also the
DestroyUsage class, but those APIs require access to either a
DialogSet/Dialog or a BaseUsageHandle (and those types are not
accessible from an AppDialogSet or children of BaseUsage).
I will try to add a (public)
DialogUsageManager::destroy(AppDialogSetHandle ...) method and let you
know how it turns out.
Any thoughts?
Thanks,
Francis