<p>Hi guys.. the <code>dlg.stats_active</code> is definitely working nicely. But the stats.get_statistics() still gets out of sync with its peer node...:</p>
<p><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/16212586/47570680-97c53c80-d8eb-11e8-8e67-6d93af693fbf.png"><img src="https://user-images.githubusercontent.com/16212586/47570680-97c53c80-d8eb-11e8-8e67-6d93af693fbf.png" alt="image" style="max-width:100%;"></a></p>
<p>So I see the situation like this:</p>
<ul>
<li><code>dlg.stats_active</code> works. Thanks! <--- I'm using this for now.</li>
<li><code>stats.get_statistics</code> has 2 issues:<br>
1- The counter at some point still hits <0 and goes to ULONG_MAX value, blablabla...<br>
2- On startup it counts the active dialogs (not sure if via DMQ or database) and that number stays static. (NOTE: this we are talking on the backup node, which has 0 traffic, and therefor should say 0). <--- This I yet have to confirm if it happens because of DMQ or dialog modparam DB_MODE=3</li>
</ul>
<p>I'll update here later on.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1591#issuecomment-433467049">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZRDmvnbf_UaMFQC5URiOZUD5ykoJks5uozjEgaJpZM4VLmd9">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZXdARq5SZZgad_pNzKeeEhrX9TvPks5uozjEgaJpZM4VLmd9.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@joelsdc in #1591: Hi guys.. the `dlg.stats_active` is definitely working nicely. But the stats.get_statistics() still gets out of sync with its peer node...:\r\n\r\n![image](https://user-images.githubusercontent.com/16212586/47570680-97c53c80-d8eb-11e8-8e67-6d93af693fbf.png)\r\n\r\nSo I see the situation like this:\r\n\r\n- `dlg.stats_active` works. Thanks! \u003c--- I'm using this for now.\r\n- `stats.get_statistics` has 2 issues:\r\n1- The counter at some point still hits \u003c0 and goes to ULONG_MAX value, blablabla...\r\n2- On startup it counts the active dialogs (not sure if via DMQ or database) and that number stays static. (NOTE: this we are talking on the backup node, which has 0 traffic, and therefor should say 0). \u003c--- This I yet have to confirm if it happens because of DMQ or dialog modparam DB_MODE=3\r\n\r\nI'll update here later on.\r\n"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1591#issuecomment-433467049"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1591#issuecomment-433467049",
"url": "https://github.com/kamailio/kamailio/issues/1591#issuecomment-433467049",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [kamailio/kamailio] RPC command stats.get_statistics randomly reporting 9223372036854776000 for current active/early dialogs (#1591)",
"sections": [
{
"text": "",
"activityTitle": "**Joel Serrano**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@joelsdc",
"facts": [

]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"kamailio/kamailio\",\n\"issueId\": 1591,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"kamailio/kamailio\",\n\"issueId\": 1591\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/kamailio/kamailio/issues/1591#issuecomment-433467049"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 355362685\n}"
}
],
"themeColor": "26292E"
}
]</script>