Hi Cyrille,

As Alex pointed, if you could share more info it would help try to identify the cause. 

Here is one possible guess:

Are you replicating dialogs vía DMQ by any chance? I have run into ghost dialogs in the past and they were narrowed down to being replicated via DMQ from another node, and that was caused in the first place because of a restart of kamailio or a sudden problem etc., no other node would own those dialogs so the timeout timers would not apply, and the restarted/problematic node has no way to know that he owned them in the first place, leaving them orphaned for ever blablabla... 

Joel. 

On Sat, Jan 19, 2019 at 15:53 Alex Balashov <abalashov@evaristesys.com> wrote:
Hi Cyrille,

1. What happens when you try to kill it with dlg.end_dlg?

2. Without having a signalling capture and knowing what the messaging
and the state transitions of this dialog look like, it's very hard to
speculate how such a dialog might have slipped through the cracks of the
dialog module's state machine.

-- Alex

On Thu, Jan 17, 2019 at 08:25:45PM +0100, Cyrille Demaret wrote:

> Hi,
>

>
> I'm running Kamailio 5.1.4 and I have some problem with some random dialogs
> sometimes staying in early state and never ends until I restart Kamailio.
>

>
> According to the init_ts, this dialog is there since 11/01/2019.
>

>
> *     Do you have an idea how I can diagnose this problem?
> *     Is there a way to kill these dialogs? I have tried with
> "dlg.end_dlg" but It seems it's not possible to kill dialogs in early
> states.
>

>
> {
>
>         h_entry: 3382
>
>         h_id: 4069
>
>         call-id: d6e6de79-7d55-486f-889f-01b05c003411
>
>         from_uri: sip:0037xxxxxxxxxxx@mydomain.com
>
>         to_uri: sip:1234@mydomain.com
>
>         state: 2
>
>         start_ts: 0
>
>         init_ts: 1547195739
>
>         timeout: 0
>
>         lifetime: 43200
>
>         dflags: 1536
>
>         sflags: 0
>
>         iflags: 0
>
>         caller: {
>
>                 tag: a909d6fa-cee9-44ac-ad76-3697fcd5cb0e
>
>                 contact:
> sip:asterisk@192.168.102.20:5080;alias=192.168.102.20~5080~1
>
>                 cseq: 7362
>
>                 route_set:
>
>                 socket: udp:192.168.102.10:5060
>
>         }
>
>         callee: {
>
>                 tag:
>
>                 contact:
>
>                 cseq:
>
>                 route_set:
>
>                 socket:
>
>         }
>
>         profiles: {
>
>                 {
>
>                         caller: sip:0037xxxxxxxxxxx@mydomain.com
>
>                 }
>
>                 {
>
>                         callee: sip:1234@mydomain.com
>
>                 }
>
>         }
>
>         variables: {
>
>         }
>
> }
>

>
> Thank you for your help.
>

>
> Best regards,
>

>
> Cyrille
>

> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


--
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users