Obey the "details" status parameter so "status overview" does not list calls.

git-svn-id: http://yate.null.ro/svn/yate/trunk@1142 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2006-12-19 21:17:16 +00:00
parent 186360ea30
commit 206847b22a
1 changed files with 14 additions and 11 deletions

View File

@ -501,17 +501,20 @@ bool CmdHandler::received(Message &msg, int id)
<< ";total=" << s_total
<< ",ring=" << s_ringing
<< ",answered=" << s_answers
<< ",chans=" << s_current << ";";
ObjList *l = &s_calls;
bool first = true;
for (; l; l=l->next()) {
GenConnection *c = static_cast<GenConnection *>(l->get());
if (c) {
if (first)
first = false;
else
msg.retValue() << ",";
msg.retValue() << c->id() << "=" << c->status() << "|" << c->party();
<< ",chans=" << s_current;
if (msg.getBoolValue("details",true)) {
msg.retValue() << ";";
ObjList *l = &s_calls;
bool first = true;
for (; l; l=l->next()) {
GenConnection *c = static_cast<GenConnection *>(l->get());
if (c) {
if (first)
first = false;
else
msg.retValue() << ",";
msg.retValue() << c->id() << "=" << c->status() << "|" << c->party();
}
}
}
msg.retValue() << "\r\n";