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:
marian 2008-01-16 13:46:53 +00:00
parent ae0e69bc89
commit 485926d629
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}