Asterisk / Corosync Issue

I have a fresh install of Centos7, and installed corosync, corosynclib, and corosyncliv-devel version 2.3.4 (and the corosync service is configured and running). I compiled Asterisk version 13.10.0 (and also tried 13.11.2) with the res_corosync module. If I do not load the module on startup, asterisk works fine. The moment I load the res_corosync, Asterisk crashes. For testing I’m also running Asterisk as root, which is the same as corosync. Any ideas?

*CLI> module load res_corosync.so
Loaded res_corosync.so
  == Parsing '/etc/asterisk/res_corosync.conf': Found
 Loaded res_corosync.so => (Corosync)
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups

res_corosync.conf:
[general]
;
; Publish Message Waiting Indication (MWI) events from this server to the
; cluster.
publish_event = mwi
;
; Subscribe to MWI events from the cluster.
subscribe_event = mwi
;
; Publish Device State (presence) events from this server to the cluster.
publish_event = device_state
;
; Subscribe to Device State (presence) events from the cluster.
subscribe_event = device_state
;

So in looking at this further, it looks like that it’s a bug with Asterisk with the Corosync 2.X train. I’ll try to compile a 1.X version of corosync to see if that works.

https://issues.asterisk.org/jira/browse/ASTERISK-25370

so, further updates. It works with Corosync 1.3.7. I then tested upgrading to Asterisk 14.0.2, and using Corosync 2.3.4, and it works fine.

*CLI> corosync show members
=============================================================
=== Cluster members =========================================
=============================================================
===
=== Node 1
=== --> Group: asterisk
=== --> Address 1: 192.168.198.117
===
=============================================================
$ sudo yum info corosync
Installed Packages
Name        : corosync
Arch        : x86_64
Version     : 2.3.4