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
_______________________________________________
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

Reply via email to