Yes shure,<br>
<br>
but in the case i mentioned above there's a problem that some dialogs are<br>
cleared on call end and some remain in state 5 and are not cleared in the<br>
db.<br>
<br>
Regarding the failover I can observe this after another camailio node loads<br>
the dialog from db and the call ends client side:<br>
```kamcmd> dlg.list<br>
{<br>
h_entry: 3025<br>
h_id: 1845<br>
ref: 2<br>
call-id: jAw54-ddy-jNknXLSjB.Eo06RWfJ6yuR<br>
from_uri: sip:0409828030@proxy.alex.cloud.evox.it<br>
to_uri: sip:390409828030@proxy.alex.cloud.evox.it<br>
state: 4<br>
start_ts: 1523358496<br>
init_ts: 1523358607<br>
end_ts: 0<br>
timeout: 1523358683<br>
lifetime: 187<br>
dflags: 0<br>
sflags: 0<br>
iflags: 1<br>
caller: {<br>
tag: OX6QxdbUGdlOOkksck2HafvRa-UqKbmf<br>
contact: sip:0409828030@172.16.21.38:55236;ob<br>
cseq: 17987<br>
route_set:<br>
<sip:172.22.2.49;lr=on;ftag=OX6QxdbUGdlOOkksck2HafvRa-UqKbmf;did=1db.601><br>
socket:<br>
}<br>
callee: {<br>
tag: as2595835f<br>
contact: sip:39390409828030@172.16.201.101:5060<br>
cseq: 0<br>
route_set:<br>
<sip:172.22.2.49;lr=on;ftag=OX6QxdbUGdlOOkksck2HafvRa-UqKbmf;did=1db.701><br>
socket:<br>
}<br>
profiles: {<br>
}<br>
variables: {<br>
{<br>
originalSourceIP: 172.16.21.38<br>
}<br>
{<br>
cgrSubsystems: "cgr_subsystems":"*resources;*suppliers;*accounts"<br>
}<br>
{<br>
authType: subscriber<br>
}<br>
{<br>
au: 0409828030<br>
}<br>
{<br>
calleeNumber: 39390409828030<br>
}<br>
{<br>
cgrReqType: *prepaid<br>
}<br>
{<br>
cgrTenant: evox.it<br>
}<br>
{<br>
cgrAccount: 0409828030<br>
}<br>
{<br>
cgrDestination: 39390409828030<br>
}<br>
{<br>
cgrCallip: 172.16.21.38<br>
}<br>
{<br>
cgrSuppliers: carrier1.cloud.evox.it,carrier2.cloud.evox.it,<br>
carrier3.cloud.evox.it<br>
}<br>
{<br>
cgrSupplier: carrier1.cloud.evox.it<br>
}<br>
{<br>
du: sip:172.22.2.49:5060<br>
}<br>
{<br>
ru: sip:39390409828030@carrier1.cloud.evox.it<br>
}<br>
}<br>
}```<br>
<br>
The state remains to 4 and then after 2 minutes it is cleared from the<br>
dlg.list and db!<br>
<br>
--<br>
Aleksandar Sošić<br>
alex.sosic(at)gmail<dot>com<br>
<br>
On Tue, Apr 10, 2018 at 12:27 PM, Daniel-Constantin Mierla <<br>
notifications@github.com> wrote:<br>
<br>
> I need for the failover case, from the second node that loads the dialog<br>
> from db -- that's what we need to debug.<br>
><br>
> —<br>
> You are receiving this because you were mentioned.<br>
> Reply to this email directly, view it on GitHub<br>
> <https://github.com/kamailio/kamailio/issues/1274#issuecomment-380051408>,<br>
> or mute the thread<br>
> <https://github.com/notifications/unsubscribe-auth/ABPxXtwqVa2ljdLnbN9TIgpAuiBURlGDks5tnIj_gaJpZM4QAl53><br>
> .<br>
><br>


<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you commented.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1274#issuecomment-380063093">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZSNE0l5Ai2kk2HSDdK0OeEXot44tks5tnJSHgaJpZM4QAl53">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZV4kfyxMyZE3dAL2eXI8A8yWjPXkks5tnJSHgaJpZM4QAl53.gif" height="1" width="1" alt="" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/1274#issuecomment-380063093"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<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://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@alexsosic in #1274: Yes shure,\n\nbut in the case i mentioned above there's a problem that some dialogs are\ncleared on call end and some remain in state 5 and are not cleared in the\ndb.\n\nRegarding the failover I can observe this after another camailio node loads\nthe dialog from db and the call ends client side:\n```kamcmd\u003e dlg.list\n{\nh_entry: 3025\nh_id: 1845\nref: 2\ncall-id: jAw54-ddy-jNknXLSjB.Eo06RWfJ6yuR\nfrom_uri: sip:0409828030@proxy.alex.cloud.evox.it\nto_uri: sip:390409828030@proxy.alex.cloud.evox.it\nstate: 4\nstart_ts: 1523358496\ninit_ts: 1523358607\nend_ts: 0\ntimeout: 1523358683\nlifetime: 187\ndflags: 0\nsflags: 0\niflags: 1\ncaller: {\ntag: OX6QxdbUGdlOOkksck2HafvRa-UqKbmf\ncontact: sip:0409828030@172.16.21.38:55236;ob\ncseq: 17987\nroute_set:\n\u003csip:172.22.2.49;lr=on;ftag=OX6QxdbUGdlOOkksck2HafvRa-UqKbmf;did=1db.601\u003e\nsocket:\n}\ncallee: {\ntag: as2595835f\ncontact: sip:39390409828030@172.16.201.101:5060\ncseq: 0\nroute_set:\n\u003csip:172.22.2.49;lr=on;ftag=OX6QxdbUGdlOOkksck2HafvRa-UqKbmf;did=1db.701\u003e\nsocket:\n}\nprofiles: {\n}\nvariables: {\n{\noriginalSourceIP: 172.16.21.38\n}\n{\ncgrSubsystems: \"cgr_subsystems\":\"*resources;*suppliers;*accounts\"\n}\n{\nauthType: subscriber\n}\n{\nau: 0409828030\n}\n{\ncalleeNumber: 39390409828030\n}\n{\ncgrReqType: *prepaid\n}\n{\ncgrTenant: evox.it\n}\n{\ncgrAccount: 0409828030\n}\n{\ncgrDestination: 39390409828030\n}\n{\ncgrCallip: 172.16.21.38\n}\n{\ncgrSuppliers: carrier1.cloud.evox.it,carrier2.cloud.evox.it,\ncarrier3.cloud.evox.it\n}\n{\ncgrSupplier: carrier1.cloud.evox.it\n}\n{\ndu: sip:172.22.2.49:5060\n}\n{\nru: sip:39390409828030@carrier1.cloud.evox.it\n}\n}\n}```\n\nThe state remains to 4 and then after 2 minutes it is cleared from the\ndlg.list and db!\n\n--\nAleksandar Sošić\nalex.sosic(at)gmail\u003cdot\u003ecom\n\nOn Tue, Apr 10, 2018 at 12:27 PM, Daniel-Constantin Mierla \u003c\nnotifications@github.com\u003e wrote:\n\n\u003e I need for the failover case, from the second node that loads the dialog\n\u003e from db -- that's what we need to debug.\n\u003e\n\u003e —\n\u003e You are receiving this because you were mentioned.\n\u003e Reply to this email directly, view it on GitHub\n\u003e \u003chttps://github.com/kamailio/kamailio/issues/1274#issuecomment-380051408\u003e,\n\u003e or mute the thread\n\u003e \u003chttps://github.com/notifications/unsubscribe-auth/ABPxXtwqVa2ljdLnbN9TIgpAuiBURlGDks5tnIj_gaJpZM4QAl53\u003e\n\u003e .\n\u003e\n"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1274#issuecomment-380063093"}}}</script>