<div dir="ltr">Hi,<div><br></div><div>I had configured my pdb module to accept 5 number prefixes by doing:<br><br>In pdbt.c:<br><br><span style="font-family:'Helvetica Neue',Arial,sans-serif;line-height:20px">bufsize = slen + 1 + 1 + <b>4</b> + 1 + 1; // line buff</span><br style="font-family:'Helvetica Neue',Arial,sans-serif;line-height:20px"><span style="font-family:'Helvetica Neue',Arial,sans-serif;line-height:20px">er (telephone number + colon + white space + carrier ID + newline + \0)</span><br></div><div><br></div><div>...</div><div><br></div><div><span style="font-family:'Helvetica Neue',Arial,sans-serif;line-height:20px"> ret = snprintf(p,<b> 7</b>, "%d\n", node->carrier);</span><br style="font-family:'Helvetica Neue',Arial,sans-serif;line-height:20px"><span style="font-family:'Helvetica Neue',Arial,sans-serif;line-height:20px">               if (ret < 1 || ret > <b>6</b>) {</span><br></div><div><span style="font-family:'Helvetica Neue',Arial,sans-serif;line-height:20px"><br></span></div><div><span style="font-family:'Helvetica Neue',Arial,sans-serif;line-height:20px">And in common.h:</span></div><div><span style="font-family:'Helvetica Neue',Arial,sans-serif;line-height:20px"><br></span></div><div><div style=""><font face="Helvetica Neue, Arial, sans-serif"><span style="line-height:20px">#define MAX_PDB_CARRIERID <b>99999</b></span></font></div><div style="font-family:'Helvetica Neue',Arial,sans-serif;line-height:20px"><br></div></div><div style="font-family:'Helvetica Neue',Arial,sans-serif;line-height:20px">And i hadn't had any problem until now. I had rows in my .csv like:</div><div style="font-family:'Helvetica Neue',Arial,sans-serif;line-height:20px"><br></div><div style="font-family:'Helvetica Neue',Arial,sans-serif;line-height:20px">0645052050;10122</div><div style="font-family:'Helvetica Neue',Arial,sans-serif;line-height:20px"><br></div><div style="font-family:'Helvetica Neue',Arial,sans-serif;line-height:20px">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. </div><div style="font-family:'Helvetica Neue',Arial,sans-serif;line-height:20px"><br></div><div style="font-family:'Helvetica Neue',Arial,sans-serif;line-height:20px">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...</div><div style="font-family:'Helvetica Neue',Arial,sans-serif;line-height:20px"><br></div><div style="font-family:'Helvetica Neue',Arial,sans-serif;line-height:20px">Could anyone help me please?</div><div style="font-family:'Helvetica Neue',Arial,sans-serif;line-height:20px"><br></div><div style="font-family:'Helvetica Neue',Arial,sans-serif;line-height:20px">Thanks and regards,</div><div style="font-family:'Helvetica Neue',Arial,sans-serif;line-height:20px"><br></div><div style="font-family:'Helvetica Neue',Arial,sans-serif;line-height:20px">Igor.</div></div>