<p>I reproduced in a lab with 3 Kamailio servers</p>
<pre><code>kamailio_first  127.0.0.101
modparam("dmq", "server_address", "sip:127.0.0.101:5060")
modparam("dmq", "notification_address", "sip:127.0.0.103:5060")
modparam("dmq", "multi_notify", 1)
modparam("dmq", "num_workers", 2)
modparam("dmq", "ping_interval", 15)

kamailio_second 127.0.0.102 notification_peer: 127.0.0.103
modparam("dmq", "server_address", "sip:127.0.0.102:5060")
modparam("dmq", "notification_address", "sip:127.0.0.103:5060")
modparam("dmq", "multi_notify", 1)
modparam("dmq", "num_workers", 2)
modparam("dmq", "ping_interval", 15)

kamailio_third  127.0.0.103 notification_peer: 127.0.0.101
modparam("dmq", "server_address", "sip:127.0.0.103:5060")
modparam("dmq", "notification_address", "sip:127.0.0.101:5060")
modparam("dmq", "multi_notify", 1)
modparam("dmq", "num_workers", 2)
modparam("dmq", "ping_interval", 15)
</code></pre>
<p><code>kamcmd -s /var/run/kamailio_$1/kamailio_ctl dmq.list_nodes | grep -e host -e status -e last -e local | tr '\n' ' ' | sed -e 's/host/\n&/g'</code></p>
<pre><code>show dmq bus: first      
host: 127.0.0.102       status: 2       last_notification: 0    local: 0        
host: 127.0.0.103       status: 2       last_notification: 0    local: 0        
host: 127.0.0.101       status: 2       last_notification: 0    local: 1 
show dmq bus: second    
host: 127.0.0.101       status: 2       last_notification: 0    local: 0        
host: 127.0.0.103       status: 2       last_notification: 0    local: 0        
host: 127.0.0.102       status: 2       last_notification: 0    local: 1 
show dmq bus: third     
host: 127.0.0.102       status: 2       last_notification: 0    local: 0        
host: 127.0.0.101       status: 2       last_notification: 0    local: 0        
host: 127.0.0.103       status: 2       last_notification: 0    local: 1 
</code></pre>
<pre><code>/etc/init.d/kamailio_first stop
/etc/init.d/kamailio_third stop

/etc/init.d/kamailio_third start
/etc/init.d/kamailio_first start
</code></pre>
<p><code>kamcmd -s /var/run/kamailio_$1/kamailio_ctl dmq.list_nodes | grep -e host -e status -e last -e local | tr '\n' ' ' | sed -e 's/host/\n&/g'</code></p>
<pre><code>show dmq bus: first      
host: 127.0.0.103       status: 2       last_notification: 0    local: 0        
host: 127.0.0.101       status: 2       last_notification: 0    local: 1 
show dmq bus: second    
host: 127.0.0.101       status: 8       last_notification: 0    local: 0        
host: 127.0.0.103       status: 8       last_notification: 0    local: 0        
host: 127.0.0.102       status: 2       last_notification: 0    local: 1 
show dmq bus: third     
host: 127.0.0.101       status: 2       last_notification: 0    local: 0        
host: 127.0.0.103       status: 2       last_notification: 0    local: 1 
</code></pre>
<p>The bus will remain broken, I think there is a second scenario that can break.</p>
<p>The notes I took when I found this (I consider this was a limitation not a bug)<br>
Why : when Kamailio_third is shutting down, it will send a message to every peers telling them he is now inactive so they will not try to contact him again.<br>
once restarted no nodes will contact him because they have an inactive state for him, at this point the only way he can learn about the other nodes is by contacting Kamailio_first, however Kamailio_first will not know about the other nodes.</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/1349">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZcWHZzXcCncdOPmCFP38iSEdZNn3ks5s8eiDgaJpZM4QzhmS">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZWizi7utXx8khlrePSajAAVsS4Rdks5s8eiDgaJpZM4QzhmS.gif" width="1" /></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/1349"></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":"DESCRIPTION","message":"sequence breaking DMQ bus (#1349)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1349"}}}</script>