<div dir="ltr">Hi All,<div><br>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<br>1:- 162.243.XX.XXX<br>2:- 104.131.XXX.XXX<br><br>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.<br><br>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. <br><br><b>Configuration done at mysql is given below:-</b></div><div>mysql> select * from dr_rules;<br>+--------+---------+--------+---------+----------+---------+---------------+----------+--------------+-------+--------------------+<br>| ruleid | groupid | prefix | timerec | priority | routeid | gwlist | sort_alg | sort_profile | attrs | description        |<br>+--------+---------+--------+---------+----------+---------+---------------+----------+--------------+-------+--------------------+<br>|      1 | 1       |        |         |        0 |         | gw2=50,gw1=50 | Q        |            1 |       | XXX_gateway |<br>+--------+---------+--------+---------+----------+---------+---------------+----------+--------------+-------+--------------------+<br>1 row in set (0.00 sec)<br><br>mysql> select * from dr_gateways;   <br>+----+------+------+----------------------+-------+------------+-------+------------+-------+--------+------------------+<br>| id | gwid | type | address              | strip | pri_prefix | attrs | probe_mode | state | socket | description     |<br>+----+------+------+----------------------+-------+------------+-------+------------+-------+--------+------------------+<br>|  1 | gw1  |    3 | 162.243.XX.XXX:5080  |     0 |            | NULL  |          0 |     0 | NULL   | 0                |<br>|  2 | gw2  |    3 | 104.131.XXX.XXX:5080 |     0 |            | NULL  |          0 |     0 | NULL   | testing gateway2 |<br>+----+------+------+----------------------+-------+------------+-------+------------+-------+--------+------------------+<br><br><b>Configuration for loading qrouting module in opensips script is below:-<br></b><br>loadmodule "qrouting.so"<br>modparam("qrouting", "db_url", "mysql://root:cccl0g1c@localhost/opensips")<br>modparam("qrouting", "algorithm", "best-dest-first")<br>modparam("qrouting", "history_span", 5)<br>modparam("qrouting", "table_name", "qr_profiles")<br>modparam("qrouting", "min_samples_pdd", 0)<br>modparam("qrouting", "min_samples_ast", 0)<br><br>Kindly help so that i can test this module successfully. Waiting for prompt response<br><br><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Best Regards<div>Saurabh Chopra</div><div>+918861979979</div></div></div></div></div></div>