<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    "kamctl dispatcher dump" should not require anymore a db engine --
    what is the version of kamailio you are using?<br>
    <br>
    Anyhow, you can do the raw mi command like:<br>
    <br>
    kamctl mi ds_list<br>
    <br>
    To reload is:<br>
    <br>
    kamct mi ds_reload<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 18/04/16 13:04, Sébastien Brice
      wrote:<br>
    </div>
    <blockquote
      cite="mid:1613545702.3472046.1460977481865.JavaMail.zimbra@jvs.fr"
      type="cite">
      <pre wrap="">Hi Marrold,

kamctl dispatcher dump
ERROR: This command requires a database engine - none was loaded
I thought i could run dispatcher module without database, it appears my strange behavior comes from this: i do not use a database.

Instead I am usinq a flat dispatcher.list file:
# Autogenerated @ Monday, April 18th 2016, 10:41:58 am
1 <a class="moz-txt-link-freetext" href="sip:172.16.0.203:5060">sip:172.16.0.203:5060</a> 0 0 weight=50
1 <a class="moz-txt-link-freetext" href="sip:172.16.0.202:5060">sip:172.16.0.202:5060</a> 0 0 weight=50


about the traffic generated toward asterisk boxes:

tshark -w capture1 -f "port 5060" -i eth0 -P
………… nothing get captured
…………
…………


What else should i attempt ?

Thanks.


----- Mail original -----
De: "Marrold" <a class="moz-txt-link-rfc2396E" href="mailto:kamailio@marrold.co.uk"><kamailio@marrold.co.uk></a>
À: "Sébastien Brice" <a class="moz-txt-link-rfc2396E" href="mailto:sebastien.brice@jvs.fr"><sebastien.brice@jvs.fr></a>, "sr-users" <a class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.sip-router.org"><sr-users@lists.sip-router.org></a>
Envoyé: Lundi 18 Avril 2016 01:16:05
Objet: Re: [SR-Users] DISPATCHER module No destinations availables even if my Asterisk Boxes are up and running

First of all I would check the result of -

# kamctl dispatcher dump

SET:: 4001
        URI:: <a class="moz-txt-link-freetext" href="sip:10.0.97.17:5060">sip:10.0.97.17:5060</a> flags=IP priority=1 attrs=backend=be011
        URI:: <a class="moz-txt-link-freetext" href="sip:10.0.97.18:5060">sip:10.0.97.18:5060</a> flags=IP priority=1 attrs=backend=be011
SET:: 4002
        URI:: <a class="moz-txt-link-freetext" href="sip:10.0.97.21:5060">sip:10.0.97.21:5060</a> flags=AP priority=1 attrs=backend=be021

AP = Active, Probing
IP = Inactive, Probing

I'd also run a SIP trace on the Asterisk boxes to check if they are
receiving / responding to the OPTIONS pings.

On Sun, Apr 17, 2016 at 9:29 PM, Sébastien Brice <a class="moz-txt-link-rfc2396E" href="mailto:sebastien.brice@jvs.fr"><sebastien.brice@jvs.fr></a>
wrote:

</pre>
      <blockquote type="cite">
        <pre wrap="">Hello everyone.
I'm using kamailio as a dispatcher in front of asterisk boxes and i use a
failure route if asterisk box does not respond or send 503 error (please
look at my attached kamailio.cfg)

I use "ds_probing_mode", 1 and "ds_ping_reply_codes",
"class=2;class=3;class=4" to OPTIONS ping the two asterisk instances but
they do appear down both all the time.

That is very annoying none of the INVITE go through Asterisk, they all are
stopped because of my failure_route that sets no destination available

ERROR: <script>: Destination down: INVITE
<a class="moz-txt-link-freetext" href="sip:9980048587420715@XXX.XXX.XXX.XX">sip:9980048587420715@XXX.XXX.XXX.XX</a> (<a class="moz-txt-link-freetext" href="sip:ipofAsterisk1:5060">sip:ipofAsterisk1:5060</a>)
ERROR: <script>: Destination down: INVITE <a class="moz-txt-link-freetext" href="sip:9980048587420715@YY.YY.YYY.YY">sip:9980048587420715@YY.YY.YYY.YY</a>
(<a class="moz-txt-link-freetext" href="sip:ipofAsterisk1:5060">sip:ipofAsterisk1:5060</a>)
ERROR: <script>: Destination down: INVITE <a class="moz-txt-link-freetext" href="sip:000442030044700@XXX.XX.X.XXX">sip:000442030044700@XXX.XX.X.XXX</a>
(<a class="moz-txt-link-freetext" href="sip:ipofAsterisk2:5060">sip:ipofAsterisk2:5060</a>)
ERROR: <script>: Destination down: INVITE <a class="moz-txt-link-freetext" href="sip:000442030044700@YY.YYY.YY.YYY">sip:000442030044700@YY.YYY.YY.YYY</a>
(<a class="moz-txt-link-freetext" href="sip:ipofAsterisk2:5060">sip:ipofAsterisk2:5060</a>)
NOTICE: <script>: Media server <a class="moz-txt-link-freetext" href="sip:172.16.0.202:5060">sip:172.16.0.202:5060</a> failed to answer,
selecting other one!
NOTICE: <script>: No destination, sent 404

I don't know what's wrong with my setup, could someone give an eye to my
kamailio.cfg and head me on the right track ?
Thanks a lot.

Seb



_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>

</pre>
      </blockquote>
      <pre wrap="">></pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, Berlin, May 18-20, 2016 - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
  </body>
</html>