[sr-dev] [kamailio/kamailio] kamailio 5.4.5 crash after dialog [dlg_hash.c:1182]: next_state_dlg(): bogus event 2 in state 5 for dlg (#2757)

Daniel-Constantin Mierla notifications at github.com
Thu Jun 3 14:39:43 CEST 2021


You have to set `h_id_start` and `h_id_step` for all servers in the replication group so the generated ids do not overlap:

  * https://www.kamailio.org/docs/modules/stable/modules/dialog.html#dialog.p.h_id_start

Likely the issue was caused by matching a dialog with same `h_id`, which was generated by a different server and not in the state that was the corresponding dialog for the processed sip message.

Eventually you can also set `dlg_match_mode=2`.

I will also add checks for the socket str, in case of replication might be safer.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2757#issuecomment-853836689
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20210603/8754e248/attachment.htm>


More information about the sr-dev mailing list