<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hello,</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">you can retrieve the list of available
      destinations via RPC command:</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">  * <a
href="https://www.kamailio.org/docs/modules/stable/modules/dispatcher.html#dispatcher.r.list">https://www.kamailio.org/docs/modules/stable/modules/dispatcher.html#dispatcher.r.list</a></div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">By using jsonrpcs module, the list is
      in json format.</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Cheers,<br>
      Daniel</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">On 03.06.19 14:34, Colin, Andrew wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAK_tst7PF954opTJc=NTU9PZr8akdXtygvtaXTBcUhgr96HFhw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">I am using the API to remove dispatchers with a
        simple curl command,
        <div>is there a way i can make kamailio check that there are
          sufficient dispatchers available before removing them when the
          command is run?</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Example: i am removing asterisk1 out of kamailio dispatcher
          list, but kamailio needs to ensure that there is atleast 2 or
          3 other asterisk servers active in the list before it allows
          it to be removed.</div>
        <div><br>
        </div>
        <div>any ideas how i can achieve this?</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <p><br>
    </p>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a></pre>
  </body>
</html>