Call monitor group masquerade: stop searching the monitor list after found a monitor.
git-svn-id: http://yate.null.ro/svn/yate/trunk@1634 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
0652ca5937
commit
b69264c528
|
@ -1854,11 +1854,12 @@ bool SigIsdnMonitor::masquerade(String& id, Message& msg)
|
|||
{
|
||||
for (ObjList* o = m_monitors.skipNull(); o; o = o->skipNext()) {
|
||||
SigIsdnCallRecord* rec = static_cast<SigIsdnCallRecord*>(o->get());
|
||||
if (id == rec->id()) {
|
||||
msg = msg.getValue("message");
|
||||
msg.clearParam("message");
|
||||
msg.userData(rec);
|
||||
}
|
||||
if (id != rec->id())
|
||||
continue;
|
||||
msg = msg.getValue("message");
|
||||
msg.clearParam("message");
|
||||
msg.userData(rec);
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue