Added some extra debugging for stray HLR record creation.

This commit is contained in:
gardners 2011-10-06 09:06:20 +10:30
parent 51f181b16f
commit 5566dddad1

View File

@ -179,6 +179,8 @@ int createHlr(char *did,char *sid) {
int i; int i;
int record_offset=0; int record_offset=0;
if (debug) fprintf(stderr,"Asked to create a new HLR record\n");
/* Generate random SID */ /* Generate random SID */
for(i=1;i<64;i++) sid[i]=hexdigit[random()&0xf]; sid[64]=0; for(i=1;i<64;i++) sid[i]=hexdigit[random()&0xf]; sid[64]=0;
/* But make sure first digit is non-zero as required by the overlay mesh */ /* But make sure first digit is non-zero as required by the overlay mesh */