<p>Hi all,</p>

<p>I had configured my pdb module to accept 5 number prefixes by modifying:</p>

<p>In pdbt.c:</p>

<pre><code> bufsize = slen + 1 + 1 + 4 + 1 + 1; // line buffer (telephone number + colon + white space + carrier ID + newline + \0)

 ...

  ret = snprintf(p, 7, "%d\n", node->carrier);
           if (ret < 1 || ret > 6) {
</code></pre>

<p>And in common.h:</p>

<pre><code> #define MAX_PDB_CARRIERID 99999
</code></pre>

<p>And i hadn't had any problem until now. I had rows in my .csv like:</p>

<p>0645052050;10122</p>

<p>And it worked. The problem I have now is with prefixes bigger than 40000. I get segmentation fault when doiong a query with pdbt, however the pdbt build works good without any error. </p>

<p>At first i thought of a buffer problem but eventhough testing with a .csv of 2 rows with 50000 prefixes will not work. Another curious effect is that for a prefix like 84238 the server changes the answer to 18754. I dont know why...</p>

<p>Could anyone help me please?</p>

<p>Thanks.</p>

<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/issues/433">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZXsT2Vn9iVmj80zefO3ZWArZQZHZks5pNpjpgaJpZM4Gw2Iw.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/433"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>