[OpenSIPS-Devel] [opensips] Add MI command to see cached dr rules (#567)

Aron Podrigal notifications at github.com
Mon Jul 6 23:01:01 CEST 2015


DR Rules in drouting module has no command to dump/verify dr rules loaded by opensips. Especially in scenarios where the rules have already been changed in the database but not reloaded by opensips, it is difficult to debug why calls have been routed to some dst.


If the data set might be too large to be dumped, maybe it would be useful to have a way to restore the rules to the database, or maybe some other command to dump the output and paginate it.
Or maybe some command to search for a pattern and return its associated rule.

```
opensipsctl dr rules_status 1:50     # return first 50 records

opensipsctl fifo dr_rules_search 011      # return all rules matching prefix 011

+--------+---------+-------------+---------+----------+---------+-------------------------------------------+-------+--------------------+
| ruleid | groupid | prefix      | timerec | priority | routeid | gwlist                                    | attrs | description        |
+--------+---------+-------------+---------+----------+---------+-------------------------------------------+-------+--------------------+
|      1 | 0       | 011972      |         |        0 | NULL    | carrier1,carrier2,intlCarrier             | NULL  | Israel numbers     |
|      2 | 0       | 01144       |         |        0 | NULL    | londonCarrier,intlCarrier                 | NULL  | UK                 |
|      3 | 0       | 011         |         |        2 | NULL    | londonCarrier,intlCarrier                 | NULL  | All Others         |
```




---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/567
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20150706/51a03e1f/attachment.htm>


More information about the Devel mailing list