<div dir="ltr"><span style="font-size:12.8px">Hello,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I am observing some unusual behavior of the ds_list command when adding and removing gateways in the dispatcher table for opensips 1.8</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I am running the following sequence of commands -</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div>./opensipsctl dispatcher addgw 40 sip:<a href="http://2.2.2.4:5060/" target="_blank">2.2.2.4:5060</a> 0 &#39;test1&#39;</div><div> ./opensipsctl dispatcher addgw 40 sip:<a href="http://2.2.2.5:5060/" target="_blank">2.2.2.5:5060</a> 0 &#39;test1&#39;</div><div> ./opensipsctl dispatcher addgw 40 sip:<a href="http://2.2.2.6:5060/" target="_blank">2.2.2.6:5060</a> 0 &#39;test1&#39;</div><div><br></div><div>When I view the dispatcher list using ds_list I see-</div><div> ./opensipsctl fifo ds_list</div><div><div>SET_NO:: 1</div><div>SET:: 40</div><div><span style="white-space:pre-wrap">        </span>URI:: sip:<a href="http://2.2.2.4:5060/" target="_blank">2.2.2.4:5060</a> flag=A</div><div><span style="white-space:pre-wrap">        </span>URI:: sip:<a href="http://2.2.2.5:5060/" target="_blank">2.2.2.5:5060</a> flag=A</div><div><span style="white-space:pre-wrap">        </span>URI:: sip:<a href="http://2.2.2.6:5060/" target="_blank">2.2.2.6:5060</a> flag=A</div></div><div>and the ./opensipsctl dispatcher show output is as follows -</div><div><div>dispatcher gateways</div><div>+----+-------+------------------+--------+-------+--------+-------+-------------+</div><div>| id | setid | destination      | socket | flags | weight | attrs | description |</div><div>+----+-------+------------------+--------+-------+--------+-------+-------------+</div><div>|  3 |    40 | sip:<a href="http://2.2.2.4:5060/" target="_blank">2.2.2.4:5060</a> | NULL   |     0 |      1 |       | test1       |</div><div>|  4 |    40 | sip:<a href="http://2.2.2.5:5060/" target="_blank">2.2.2.5:5060</a> | NULL   |     0 |      1 |       | test1       |</div><div>|  5 |    40 | sip:<a href="http://2.2.2.6:5060/" target="_blank">2.2.2.6:5060</a> | NULL   |     0 |      1 |       | test1       |</div><div>+----+-------+------------------+--------+-------+--------+-------+-------------+</div></div><div><br></div><div>However when I remove the 3 gateways one after another using the ./opensipsctl dispatcher rmgw command. I see that the gateway that was removed last can still be seen in the ds_list command even though &#39;dispatcher show&#39; does not show any gateways present. Here is the sequence of commands I am executing-</div><div><br></div><div><div> ./opensipsctl dispatcher rmgw 3</div><div>./opensipsctl fifo ds_list<br></div><div>SET_NO:: 1</div><div>SET:: 40</div><div><span style="white-space:pre-wrap">        </span>URI:: sip:<a href="http://2.2.2.5:5060/" target="_blank">2.2.2.5:5060</a> flag=A</div><div><span style="white-space:pre-wrap">        </span>URI:: sip:<a href="http://2.2.2.6:5060/" target="_blank">2.2.2.6:5060</a> flag=A</div><div> ./opensipsctl dispatcher show</div><div>dispatcher gateways</div><div>+----+-------+------------------+--------+-------+--------+-------+-------------+</div><div>| id | setid | destination      | socket | flags | weight | attrs | description |</div><div>+----+-------+------------------+--------+-------+--------+-------+-------------+</div><div>|  4 |    40 | sip:<a href="http://2.2.2.5:5060/" target="_blank">2.2.2.5:5060</a> | NULL   |     0 |      1 |       | test1       |</div><div>|  5 |    40 | sip:<a href="http://2.2.2.6:5060/" target="_blank">2.2.2.6:5060</a> | NULL   |     0 |      1 |       | test1       |</div><div>+----+-------+------------------+--------+-------+--------+-------+-------------+</div><div><br></div><div> ./opensipsctl dispatcher rmgw 4</div><div> ./opensipsctl fifo ds_list<br></div><div>SET_NO:: 1</div><div>SET:: 40</div><div><span style="white-space:pre-wrap">        </span>URI:: sip:<a href="http://2.2.2.6:5060/" target="_blank">2.2.2.6:5060</a> flag=A</div><div> ./opensipsctl dispatcher show</div><div>dispatcher gateways</div><div>+----+-------+------------------+--------+-------+--------+-------+-------------+</div><div>| id | setid | destination      | socket | flags | weight | attrs | description |</div><div>+----+-------+------------------+--------+-------+--------+-------+-------------+</div><div>|  5 |    40 | sip:<a href="http://2.2.2.6:5060/" target="_blank">2.2.2.6:5060</a> | NULL   |     0 |      1 |       | test1       |</div><div>+----+-------+------------------+--------+-------+--------+-------+-------------+</div><div><br></div><div> ./opensipsctl dispatcher rmgw 5</div><div> ./opensipsctl fifo ds_list<br></div><div>SET_NO:: 1</div><div>SET:: 40</div><div><span style="white-space:pre-wrap">        </span>URI:: sip:<a href="http://2.2.2.6:5060/" target="_blank">2.2.2.6:5060</a> flag=A</div><div> ./opensipsctl dispatcher show</div><div>dispatcher gateways</div></div><div><br></div><div><br></div><div>Can you please help in understanding this behavior? Is this expected behavior? Is there something I am missing that needs to be done to correct this?</div><div class=""><div id=":yp" class="" tabindex="0"><img class="" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Thanks,<div>Gunjan</div></div></div>
</div>