Re: [SR-Users] Checking dispatcher gw state

2018-02-22 Thread Joel Serrano
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=",
  "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=",
  "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  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 
> 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


Re: [SR-Users] Checking dispatcher gw state

2018-02-22 Thread Joel Serrano
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 
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


[SR-Users] Checking dispatcher gw state

2018-02-22 Thread Daniel Greenwald
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