Allow using span and range names in trunk circuit status.

git-svn-id: http://yate.null.ro/svn/yate/trunk@4406 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2011-05-25 15:29:19 +00:00
parent 07a8350f5c
commit 7a7bcc604c
1 changed files with 5 additions and 2 deletions

View File

@ -1981,10 +1981,13 @@ void SigDriver::status(SigTrunk* trunk, String& retVal, const String& target)
break;
SignallingCircuitRange range(target,0);
SignallingCircuitRange* rptr = ⦥
if (target == "*" || target == "all")
range.add(ctrl->circuits()->base(),ctrl->circuits()->last());
for (unsigned int i = 0; i < range.count(); i++) {
SignallingCircuit* cic = ctrl->circuits()->find(range[i]);
else if (range.count() == 0)
rptr = ctrl->circuits()->findRange(target);
for (unsigned int i = 0; rptr && i < rptr->count(); i++) {
SignallingCircuit* cic = ctrl->circuits()->find((*rptr)[i]);
if (!cic)
continue;
count++;