<p>It triggers the generation of many "confirmed" state PUBLISH requests (for each response within request), which is incorrect. "confirmed" state publication should be limited to reINVITE when the nopublish flag is not set and not for everything (like REFER, ...).</p>

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull https://github.com/dsandras/opensips ds-fix-unneeded-publish</pre>
<p>Or view, comment on, or merge it at:</p>
<p>&nbsp;&nbsp;<a href='https://github.com/OpenSIPS/opensips/pull/149'>https://github.com/OpenSIPS/opensips/pull/149</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Fixed DLGCB_RESPONSE_WITHIN cb triggering useless &quot;confirmed&quot; state.</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/OpenSIPS/opensips/pull/149/files#diff-0">modules/pua_dialoginfo/pua_dialoginfo.c</a>
    (4)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/OpenSIPS/opensips/pull/149.patch'>https://github.com/OpenSIPS/opensips/pull/149.patch</a></li>
  <li><a href='https://github.com/OpenSIPS/opensips/pull/149.diff'>https://github.com/OpenSIPS/opensips/pull/149.diff</a></li>
</ul>