hnimminh/libresbc

[BUG] Unable to delete unengaged routing table

cnickh opened this issue · 2 comments

Describe the bug
Unable to delete routing table that is no longer in use.

To Reproduce

Add routing table RoutingTableA and add inbound connection InboundA using RoutingTableA.

LibreSBC will not allow you to remove the RoutingTableA while engaged with InboundA. However even when InboundA is deleted it is still impossible to remove RoutingTableA.

Actual behavior
Once InboundA was deleted, attempting a DELETE on RoutingTableA returns:

{
"error": "engaged routing table"
}

despite the inbound connection being deleted.

Expected behavior
The Routing table should be able to be deleted once the engaged inbound connection is deleted.

Log & Screenshots
libre-err

The screenshot shows no registered inbound connections. But DELETE not succeeding on the routing table 'toSIPP12'.

Additional context

  • Version: eg. v0.5.9
  • OS: eg. Debian 10

Thanks @cnickh
The issue is reproducible, found there a missing un-engage for routing of inbound interconnection. Will add the fix soon!

@cnickh just added the fix, can you re-add the SIPP11 and reproduce issue. Thanks