<p>Found out that it is caused by a wrongly structured mysql view based on the dispatcher table.</p>

<p>In our view of the dispatcher the weight column had a structure of VARCHAR. While this is an INT on the default dispatcher table.</p>

<p>To replicate the issue, simply change in the dispatcher table structure the weight from INT(11) to VARCHAR(11).</p>

<p>in both cases there was 1 in the weight column. </p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/387#issuecomment-147394591">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciU0NF0CdePUbQ3_AS4zv7mLon4dEks5o66itgaJpZM4C_xjJ.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/OpenSIPS/opensips/issues/387#issuecomment-147394591"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>