Fixed circuit map build when sending circuit group (un)blocking.

git-svn-id: http://yate.null.ro/svn/yate/trunk@2329 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2008-11-11 14:47:41 +00:00
parent 41d5b80a0a
commit 4374f970c3
1 changed files with 4 additions and 1 deletions

View File

@ -3158,7 +3158,7 @@ bool SS7ISUP::sendLocalLock(u_int64_t when)
d[0] = '1';
unsigned int cics = 1;
unsigned int lockRange = 1;
for (; o && cics < 32; o = o->skipNext(), lockRange++) {
for (; o && cics < 32 && lockRange < 256; o = o->skipNext()) {
SignallingCircuit* cic = static_cast<SignallingCircuit*>(o->get());
// Presume all circuits belonging to the same span to follow each other in the list
if (span != cic->span())
@ -3179,6 +3179,9 @@ bool SS7ISUP::sendLocalLock(u_int64_t when)
d[lockRange] = '1';
cics++;
}
else
d[lockRange] = '0';
lockRange++;
}
if (cics == 1)
lockRange = 1;