Recorder: fixed call.preroute failure condition.
git-svn-id: http://voip.null.ro/svn/yate@1639 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
ae0e69bc89
commit
485926d629
|
@ -2232,8 +2232,7 @@ bool AnalogCallRec::startRecording()
|
|||
m->setParam("caller",s_unk);
|
||||
bool ok = false;
|
||||
while (true) {
|
||||
if (!(Engine::dispatch(m)) &&
|
||||
(m->retValue() == "-" || m->retValue() == "error")) {
|
||||
if (Engine::dispatch(m) && (m->retValue() == "-" || m->retValue() == "error")) {
|
||||
m_reason = m->getValue("reason",m->getValue("error","failure"));
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue