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 << ";total=" << s_total
<< ",ring=" << s_ringing << ",ring=" << s_ringing
<< ",answered=" << s_answers << ",answered=" << s_answers
<< ",chans=" << s_current << ";"; << ",chans=" << s_current;
ObjList *l = &s_calls; if (msg.getBoolValue("details",true)) {
bool first = true; msg.retValue() << ";";
for (; l; l=l->next()) { ObjList *l = &s_calls;
GenConnection *c = static_cast<GenConnection *>(l->get()); bool first = true;
if (c) { for (; l; l=l->next()) {
if (first) GenConnection *c = static_cast<GenConnection *>(l->get());
first = false; if (c) {
else if (first)
msg.retValue() << ","; first = false;
msg.retValue() << c->id() << "=" << c->status() << "|" << c->party(); else
msg.retValue() << ",";
msg.retValue() << c->id() << "=" << c->status() << "|" << c->party();
}
} }
} }
msg.retValue() << "\r\n"; msg.retValue() << "\r\n";