<p>I did this too quickly, this is making some assumptions about the data it receives (i.e. that any column value equaling nul with be of type DB_INT) and I am not sure if that is true.</p>

<p>There is probably a safer solution that I'll need to think about, but the issue stands that assigning db results to avps shouldn't skip NULL values.</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/pull/693#issuecomment-155854994">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOcicRDg9BI9yToOG-YN-VNkdMbcqz-ks5pE3KkgaJpZM4Ge41v.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/pull/693#issuecomment-155854994"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>