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:
parent
029407d65c
commit
57fd30ecdd
|
@ -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") {
|
||||
|
|
Loading…
Reference in New Issue