<p>We have 2M lines in carrierroute, so we often need to get back the ID of the line from the DB from carrierroute.</p>
<p>This commit creates a new modparam "id_in_avp" for the module carrierroute which may be 0 - 2</p>
<p>0 - no ID, only the description is saved in the avp<br>
1 - ID and descrptiotion is saved in the AVP<br>
2 - Only ID is saved in the AVP.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/kamailio/kamailio/pull/221'>https://github.com/kamailio/kamailio/pull/221</a></p>
<h4>Commit Summary</h4>
<ul>
<li>Added modparam id_in_avp for carrierroute so the ID may be returned to the AVP variable for easier debugging</li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/kamailio/kamailio/pull/221/files#diff-0">modules/carrierroute/carrierroute.c</a>
(7)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/kamailio/kamailio/pull/221/files#diff-1">modules/carrierroute/cr_db.c</a>
(61)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/kamailio/kamailio/pull/221.patch'>https://github.com/kamailio/kamailio/pull/221.patch</a></li>
<li><a href='https://github.com/kamailio/kamailio/pull/221.diff'>https://github.com/kamailio/kamailio/pull/221.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/pull/221">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36Zbxo57XQ7Zc-dyLUtrIowS-UAZJcks5oWvMagaJpZM4FLGmL.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/pull/221"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>