[SR-Users] Checking dispatcher gw state
Joel Serrano
joel at gogii.net
Fri Feb 23 06:16:06 CET 2018
And an example:
root at 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 <joel at 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 <dgreenwald at 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 at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180222/531145a6/attachment.html>
More information about the sr-users
mailing list