[sr-dev] [kamailio] PDB module prefixes (#433)
igorPot
notifications at github.com
Tue Dec 8 12:11:45 CET 2015
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20151208/daffbb40/attachment.html>
More information about the sr-dev
mailing list