And an example:

root@sbc01:~# kamctl dispatcher dump
{
  "jsonrpc":  "2.0",
  "result": {
    "NRSETS": 2,
    "RECORDS":  [{
        "SET":  {
          "ID": 1,
          "TARGETS":  [{
              "DEST": {
                "URI":  "sip:A.B.C.D:5060",
                "FLAGS":  "AP",        <----- This one is "A" (Active) "P"
(Probing)
                "PRIORITY": 0,
                "ATTRS":  {
                  "BODY": "dsName=XXXX",
                  "DUID": "",
                  "MAXLOAD":  0,
                  "WEIGHT": 0,
                  "RWEIGHT":  0,
                  "SOCKET": ""
                }
              }
            }]
        }
      }, {
        "SET":  {
          "ID": 2,
          "TARGETS":  [{
              "DEST": {
                "URI":  "sip:E.F.G.H:5060",
                "FLAGS":  "IP",        <----- This one is "I" (Inactive)
"P" (Probing)
                "PRIORITY": 0,
                "ATTRS":  {
                  "BODY": "dsName=YYYY",
                  "DUID": "",
                  "MAXLOAD":  0,
                  "WEIGHT": 0,
                  "RWEIGHT":  0,
                  "SOCKET": ""
                }
              }
            }]
        }
...


So in this case, gateway A.B.C.D would be "up" and E.F.G.H would be "down".



Joel.

On Thu, Feb 22, 2018 at 9:10 PM, Joel Serrano <j...@gogii.net> wrote:

> kamctl dispatcher dump
>
> ..check for the FLAGS..
>
> In the docs: https://www.kamailio.org/docs/modules/devel/modules/
> dispatcher.html
>
> you have the flags explained in section "4.6.  ds_mark_dst([state])"
>
>
> Cheers,
> Joel.
>
>
>
> On Thu, Feb 22, 2018 at 5:05 PM, Daniel Greenwald <dgreenw...@gmail.com>
> wrote:
>
>> 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.
>>
>> Thanks
>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to