I have now made the following changes:
pdbt.c:
bufsize = slen + 1 + 1 + 5 + 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) {
common.h:
#define MAX_PDB_CARRIERID 99999 #define MAX_CARRIERID 99999 … typedef int32_t carrier_t;
I still get no answer for prefixes bigger than 32767. I have a server with only this two lines :
0778667682;32768 0781541867;32767
The results of 2 querys are:
processing command line parameters... got an answer in 0.180000 ms 0778667682: not_found: comment=''
processing command line parameters... got an answer in 0.155000 ms 0781541867:32767:unknown carrier
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/433#issuecomment-162852315