Display maxcalls besides running cals count in "callgen info" command.

git-svn-id: http://voip.null.ro/svn/yate@5241 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2012-08-27 12:59:04 +00:00
parent 029407d65c
commit 57fd30ecdd
1 changed files with 7 additions and 1 deletions

View File

@ -476,8 +476,14 @@ bool CmdHandler::doCommand(String& line, String& rval)
<< s_ringing << " ring, "
<< s_answers << " answered, "
<< s_current << " running";
if (s_runs)
if (s_runs) {
int maxcalls = s_cfg.getIntValue(s_parameters,YSTRING("maxcalls"),5);
if (maxcalls < 0)
maxcalls = 0;
if (maxcalls)
rval << " out of " << maxcalls;
rval << ", " << s_numcalls << " to go";
}
s_mutex.unlock();
}
else if (line == "start") {