<div dir="ltr">And an example:<div><br></div><div><div><font face="monospace, monospace">root@sbc01:~# kamctl dispatcher dump</font></div><div><font face="monospace, monospace">{</font></div><div><font face="monospace, monospace"> "jsonrpc": "2.0",</font></div><div><font face="monospace, monospace"> "result": {</font></div><div><font face="monospace, monospace"> "NRSETS": 2,</font></div><div><font face="monospace, monospace"> "RECORDS": [{</font></div><div><font face="monospace, monospace"> "SET": {</font></div><div><font face="monospace, monospace"> "ID": 1,</font></div><div><font face="monospace, monospace"> "TARGETS": [{</font></div><div><font face="monospace, monospace"> "DEST": {</font></div><div><font face="monospace, monospace"> "URI": "sip:A.B.C.D:5060",</font></div><div><font face="monospace, monospace"> "FLAGS": "AP", <font color="#38761d"><----- This one is "A" (Active) "P" (Probing)</font></font></div><div><font face="monospace, monospace"> "PRIORITY": 0,</font></div><div><font face="monospace, monospace"> "ATTRS": {</font></div><div><font face="monospace, monospace"> "BODY": "dsName=XXXX",</font></div><div><font face="monospace, monospace"> "DUID": "",</font></div><div><font face="monospace, monospace"> "MAXLOAD": 0,</font></div><div><font face="monospace, monospace"> "WEIGHT": 0,</font></div><div><font face="monospace, monospace"> "RWEIGHT": 0,</font></div><div><font face="monospace, monospace"> "SOCKET": ""</font></div><div><font face="monospace, monospace"> }</font></div><div><font face="monospace, monospace"> }</font></div><div><font face="monospace, monospace"> }]</font></div><div><font face="monospace, monospace"> }</font></div></div><div><div><font face="monospace, monospace"> }, {</font></div><div><font face="monospace, monospace"> "SET": {</font></div><div><font face="monospace, monospace"> "ID": 2,</font></div><div><font face="monospace, monospace"> "TARGETS": [{</font></div><div><font face="monospace, monospace"> "DEST": {</font></div><div><font face="monospace, monospace"> "URI": "sip:E.F.G.H:5060",</font></div><div><font face="monospace, monospace"> "FLAGS": "IP", <span style="color:rgb(255,0,0);font-family:monospace,monospace;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><----- This one is "I" (Inactive) "P" (Probing)</span></font></div><div><font face="monospace, monospace"> "PRIORITY": 0,</font></div><div><font face="monospace, monospace"> "ATTRS": {</font></div><div><font face="monospace, monospace"> "BODY": "dsName=YYYY",</font></div><div><font face="monospace, monospace"> "DUID": "",</font></div><div><font face="monospace, monospace"> "MAXLOAD": 0,</font></div><div><font face="monospace, monospace"> "WEIGHT": 0,</font></div><div><font face="monospace, monospace"> "RWEIGHT": 0,</font></div><div><font face="monospace, monospace"> "SOCKET": ""</font></div><div><font face="monospace, monospace"> }</font></div><div><font face="monospace, monospace"> }</font></div><div><font face="monospace, monospace"> }]</font></div><div><font face="monospace, monospace"> }</font></div><div>...</div><div><br></div></div><div><br></div><div>So in this case, gateway A.B.C.D would be "up" and E.F.G.H would be "down".</div><div><br></div><div><br></div><div><br></div><div>Joel.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 22, 2018 at 9:10 PM, Joel Serrano <span dir="ltr"><<a href="mailto:joel@gogii.net" target="_blank">joel@gogii.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">kamctl dispatcher dump<div><br></div><div>..check for the FLAGS..</div><div><br></div><div>In the docs: <a href="https://www.kamailio.org/docs/modules/devel/modules/dispatcher.html" target="_blank">https://www.kamailio.org/docs/<wbr>modules/devel/modules/<wbr>dispatcher.html</a></div><div><br></div><div>you have the flags explained in section "4.6. ds_mark_dst([state])"</div><div><br></div><div><br></div><div>Cheers, </div><div>Joel.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Thu, Feb 22, 2018 at 5:05 PM, Daniel Greenwald <span dir="ltr"><<a href="mailto:dgreenwald@gmail.com" target="_blank">dgreenwald@gmail.com</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><div dir="ltr">Is there a way thru kamctl or kamcmd to check which dispatcher gateways are currently inactive? "kamctl dispatcher show" doesn't seem to have that info and I can't find anything in the docs.<div><br></div><div>Thanks</div></div>
<br></span>______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi<wbr>-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>