disabled DTMF detection where its not needed

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@207 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 20 years ago
parent 44cbfb7f6f
commit ede1f7189f

@ -1,4 +1,6 @@
COREPATH ?= ../core
.DEFAULT_GOAL := all
include $(COREPATH)/../Makefile.defs
exclude_modules = mp3 announce_auth

@ -103,6 +103,8 @@ AnnounceCallerDialog::AnnounceCallerDialog(const string& filename)
void AnnounceCallerDialog::onSessionStart(const AmSipRequest& req)
{
setDtmfDetectionEnabled(false);
callee_addr = req.to;
callee_uri = req.r_uri;

@ -154,6 +154,9 @@ void AnnounceAuthDialog::onSessionStart(const AmSipReply& rep)
}
void AnnounceAuthDialog::startSession(){
// disable DTMF detection - don't use DTMF here
setDtmfDetectionEnabled(false);
if(wav_file.open(filename,AmAudioFile::Read))
throw string("AnnounceAuthDialog::onSessionStart: Cannot open file\n");

@ -103,6 +103,9 @@ AnnounceTransferDialog::~AnnounceTransferDialog()
void AnnounceTransferDialog::onSessionStart(const AmSipRequest& req)
{
// disable DTMF detection - don't use DTMF here
setDtmfDetectionEnabled(false);
DBG("AnnounceTransferDialog::onSessionStart\n");
if (status == Disconnected) {
status = Announcing;

@ -129,6 +129,9 @@ EarlyAnnounceDialog::~EarlyAnnounceDialog()
void EarlyAnnounceDialog::onSessionStart(const AmSipRequest& req)
{
// disable DTMF detection - don't use DTMF here
setDtmfDetectionEnabled(false);
DBG("EarlyAnnounceDialog::onSessionStart\n");
if(wav_file.open(filename,AmAudioFile::Read))
throw string("EarlyAnnounceDialog::onSessionStart: Cannot open file\n");

@ -287,6 +287,9 @@ void AnswerMachineDialog::process(AmEvent* event)
void AnswerMachineDialog::onSessionStart(const AmSipRequest& req)
{
// disable DTMF detection - don't use DTMF here
setDtmfDetectionEnabled(false);
if(a_greeting.open(announce_file.c_str(),AmAudioFile::Read) ||
a_beep.open(add2path(AnswerMachineFactory::AnnouncePath,1, "beep.wav"),AmAudioFile::Read))
throw string("AnswerMachine: could not open annoucement files\n");

Loading…
Cancel
Save