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
sayer/1.4-spce2.6
Raphael Coeffic 21 years ago
parent e4dccea5ed
commit 3564062fbc

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

Loading…
Cancel
Save