From 5ac5ac5093f9fd571620a8bc3334b81d90169533 Mon Sep 17 00:00:00 2001 From: jlh Date: Sun, 27 Apr 2008 01:19:52 +0200 Subject: [PATCH] Make recording of calls already in progress actually work --- call.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/call.cpp b/call.cpp index 0d7e8b7..5d196fb 100644 --- a/call.cpp +++ b/call.cpp @@ -465,15 +465,15 @@ void CallHandler::callCmd(const QStringList &args) { if (a == "INPROGRESS") call->startRecording(); - else if (a == "DURATION") { - /* this is where we start recording calls that are already running, for - example if the user starts this program after the call has been placed */ - if (newCall) - call->startRecording(); - } // don't stop recording when we get "FINISHED". just wait for // the connections to close so that we really get all the data + } else if (subCmd == "DURATION") { + /* this is where we start recording calls that are already running, for + example if the user starts this program after the call has been placed */ + call->setStatus("INPROGRESS"); + if (newCall) + call->startRecording(); } QList list = calls.values(); -- 2.11.4.GIT