Obey the "details" status parameter so "status overview" does not list calls.
git-svn-id: http://voip.null.ro/svn/yate@1142 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
1a305cf16e
commit
5e81e179e5
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue