Copy circuit range from routing. Create a circuit range for each span in a circuit group.

git-svn-id: http://voip.null.ro/svn/yate@1835 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2008-03-24 08:38:03 +00:00
parent 24da76843c
commit 4c7d0d90b2
1 changed files with 2 additions and 0 deletions

View File

@ -563,6 +563,7 @@ SigChannel::SigChannel(Message& msg, const char* caller, const char* called, Sig
sigMsg->params().addParam("caller",caller);
sigMsg->params().addParam("called",called);
sigMsg->params().addParam("callername",msg.getValue("callername"));
sigMsg->params().copyParam(msg,"circuits");
sigMsg->params().copyParam(msg,"format");
sigMsg->params().copyParam(msg,"callernumtype");
sigMsg->params().copyParam(msg,"callernumplan");
@ -1704,6 +1705,7 @@ SigCircuitGroup* SigLink::buildCircuits(NamedList& params, const String& device,
error << "Failed to build voice span '" << *s << "'";
break;
}
group->insertRange(span,*s);
int chans = spanParams.getIntValue("chans");
start += chans;
}