<div dir="ltr">Hi Tony/Opensips Team,<div><br></div><div>Happy New Year,</div><div><br></div><div>I have tried to test with default values in my configuration file but no luck.The call is still going to the first gateway i.e. 104.XX.XX.XX. If possible could you please help us at configuration side, what parameters should be allowed to test this Qrouting module. Below is the output for opensips-cli -x mi qr_status:-</div><div><br></div>                            "Carrier": {<br>                                "CRID": "cr1",<br>                                "Gateways": [<br>                                    {<br>                                        "GWID": "gw1",<br>                                        "ASR": "-1.00/9",<br>                                        "CCR": "-1.00/9",<br>                                        "PDD": "-1.00/7",<br>                                        "AST": "-1.00/7",<br>                                        "ACD": "-1.00/7"<br>                                    },<br>                                    {<br>                                        "GWID": "gw2",<br>                                        "ASR": "-1.00/0",<br>                                        "CCR": "-1.00/0",<br>                                        "PDD": "-1.00/0",<br>                                        "AST": "-1.00/0",<br>                                        "ACD": "-1.00/0"<br>                                    }<br>                                ]<br><div> </div><div><br clear="all"><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><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 21, 2020 at 4:18 PM Saurabh Chopra <<a href="mailto:saurabhc@3clogic.com">saurabhc@3clogic.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Tony/Opensips Team,<div><br></div><div>Will test it with default values as per your suggestion and will post the result of statistics for each of the gateways.</div><div><br></div><div> <br></div><div><div><div dir="ltr"><div dir="ltr">Best Regards<div>Saurabh Chopra</div><div>+918861979979</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Dec 20, 2020 at 3:09 PM Tomi Hakkarainen <<a href="mailto:tpaivaa@gmail.com" target="_blank">tpaivaa@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="ltr">Hi,</div><div dir="ltr"><br></div><div dir="ltr">never used myself but as reading the doc and your config, here some of my thoughts.</div><div dir="ltr"><br></div><div dir="ltr">I see you are setting min_samples to zero and My guess is that that way they will stay healthy forever?</div><div dir="ltr">Maybe adjust the config of min_samples to something like default or 15 and look how it behaves... </div><div dir="ltr">also have you viewed what the statistics show while testing? ( <span style="white-space:pre-wrap;background-color:rgb(254,254,238)">opensips-cli -x mi qr_status )</span></div><div dir="ltr">Would like to hear how it goes :)</div><div dir="ltr"><br></div><div dir="ltr">Tomi</div><div dir="ltr"><br>On 18. Dec 2020, at 15.03, Saurabh Chopra <<a href="mailto:saurabhc@3clogic.com" target="_blank">saurabhc@3clogic.com</a>> wrote:<br><br></div><div dir="ltr"><div dir="ltr">Hi All,<div><br></div><div>Kindly update me on the query raised on Qrouting.</div><div><br clear="all"><div><div dir="ltr"><div dir="ltr">Best Regards<div>Saurabh Chopra</div><div>+918861979979</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 17, 2020 at 3:43 PM Saurabh Chopra <<a href="mailto:saurabhc@3clogic.com" target="_blank">saurabhc@3clogic.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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"><div dir="ltr">Best Regards<div>Saurabh Chopra</div><div>+918861979979</div></div></div></div></div></div>
</blockquote></div>
<span>_______________________________________________</span><br><span>Users mailing list</span><br><span><a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a></span><br><span><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a></span><br></div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>
</blockquote></div>