From 3564062fbce5634cdbb0c1ce455f632e197c4cb2 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Fri, 24 Mar 2006 10:36:59 +0000 Subject: [PATCH] changed to name of the recorded message from req.callid to the dialog local tag. this avoids callid collision. git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@11 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- apps/voicemail/AnswerMachine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/voicemail/AnswerMachine.cpp b/apps/voicemail/AnswerMachine.cpp index cc67eee6..e77fc501 100644 --- a/apps/voicemail/AnswerMachine.cpp +++ b/apps/voicemail/AnswerMachine.cpp @@ -273,12 +273,12 @@ void AnswerMachineDialog::onSessionStart(const AmSipRequest& req) a_beep.open(add2path(AnswerMachineFactory::AnnouncePath,1, "beep.wav"),AmAudioFile::Read)) throw string("AnswerMachine: could not open annoucement files\n"); - msg_filename = "/tmp/" + req.callid + "." + msg_filename = "/tmp/" + getLocalTag() + "." + AnswerMachineFactory::RecFileExt; if(a_msg.open(msg_filename,AmAudioFile::Write)) throw string("AnswerMachine: couldn't open ") + - msg_filename + string("for writing"); + msg_filename + string(" for writing"); a_msg.setRecordTime(AnswerMachineFactory::MaxRecordTime*1000);