hnimminh / libresbc

An open source Session Border Controller 🌟 The SBC you dream about 🗽 LibreSBC will help you save thousands of dollars.
https://github.com/hnimminh/libresbc
MIT License
357 stars 80 forks source link

[BUG] Unable to delete unengaged routing table #80

Closed cnickh closed 1 year ago

cnickh commented 1 year ago

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

hnimminh commented 1 year ago

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

hnimminh commented 1 year ago

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