OpenSIPS / opensips-cp

A Web Control Panel Application for the OpenSIPS, which is intended for both system and user provisioning. It features more than 18 tools, covering important functionalities (MI,statistics) and modules (acc,siptrace,drouting,dialplan) of OpenSIPS.
GNU General Public License v2.0
113 stars 78 forks source link

[dispatcher] DB versus MI correlation #140

Open bogdan-iancu opened 2 years ago

bogdan-iancu commented 2 years ago

The dispatcher tool correlates the DB records of the Destinations with the MI records (of the same Destinations) using only the SIP URI. This is broken as the same SIP URI may exist in different dispatching set, leading the wrong matching, and wrong status displaying.

To make this even worst, the dispatcher modules (in OpenSIPS) does not provide any unique key for the Destinations, so it is rather impossible to precisely match DB versus MI and even more, to properly do ds_set_state on the right Destination.