[OpenSIPS-Users] Quality Routing Module in Opensips_3.1

Saurabh Chopra saurabhc at 3clogic.com
Thu Dec 17 10:13:38 EST 2020


Hi All,

I want to test the new quality routing module, previously i have tested the
dynamic routing and it works for me. But somehow, qrouting module is not
running as per my expectation. My understanding is qrouting module helps us
to choose a better gateway at run time as per statistics like ASR,PDD,AST
etc. I took two asterisk gateways
1:- 162.243.XX.XXX
2:- 104.131.XXX.XXX

I have deliberately given 15sec wait on 104.131.XXX.XXX asterisk after this
it will send 200 OK response for the call. So as per qrouting module, AST
statistics for 104.131.XXX.XXX gateway would somewhat be lower than this
162.243.XX.XXX.

So,I am expecting the call should mostly be reached to 162.243.XX.XXX
gateway instead of 104.131.XXX.XXX, but this is not happening as calls are
reaching to 104.131.XXX.XXX gateway which has poor statistics i.e AST.

*Configuration done at mysql is given below:-*
mysql> select * from dr_rules;
+--------+---------+--------+---------+----------+---------+---------------+----------+--------------+-------+--------------------+
| ruleid | groupid | prefix | timerec | priority | routeid | gwlist |
sort_alg | sort_profile | attrs | description        |
+--------+---------+--------+---------+----------+---------+---------------+----------+--------------+-------+--------------------+
|      1 | 1       |        |         |        0 |         | gw2=50,gw1=50
| Q        |            1 |       | XXX_gateway |
+--------+---------+--------+---------+----------+---------+---------------+----------+--------------+-------+--------------------+
1 row in set (0.00 sec)

mysql> select * from dr_gateways;
+----+------+------+----------------------+-------+------------+-------+------------+-------+--------+------------------+
| id | gwid | type | address              | strip | pri_prefix | attrs |
probe_mode | state | socket | description     |
+----+------+------+----------------------+-------+------------+-------+------------+-------+--------+------------------+
|  1 | gw1  |    3 | 162.243.XX.XXX:5080  |     0 |            | NULL  |
       0 |     0 | NULL   | 0                |
|  2 | gw2  |    3 | 104.131.XXX.XXX:5080 |     0 |            | NULL  |
       0 |     0 | NULL   | testing gateway2 |
+----+------+------+----------------------+-------+------------+-------+------------+-------+--------+------------------+


*Configuration for loading qrouting module in opensips script is below:-*
loadmodule "qrouting.so"
modparam("qrouting", "db_url", "mysql://root:cccl0g1c@localhost/opensips")
modparam("qrouting", "algorithm", "best-dest-first")
modparam("qrouting", "history_span", 5)
modparam("qrouting", "table_name", "qr_profiles")
modparam("qrouting", "min_samples_pdd", 0)
modparam("qrouting", "min_samples_ast", 0)

Kindly help so that i can test this module successfully. Waiting for prompt
response

Best Regards
Saurabh Chopra
+918861979979
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20201217/0d2ef323/attachment.html>


More information about the Users mailing list