Module: sems Branch: master Commit: 59bcfb4eefac6f9470fa81023cb5e7dc1bb92bcb URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=59bcfb4eefac6f9470fa81023cb5e7dc1bb92bcb
Author: Raphael Coeffic <[email protected]> Committer: Raphael Coeffic <[email protected]> Date: Wed Dec 14 16:27:03 2011 +0100 setReceiving should be called ealier to make it into the SDP. --- apps/announcement/Announcement.cpp | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/announcement/Announcement.cpp b/apps/announcement/Announcement.cpp index 9285d20..8097bcc 100644 --- a/apps/announcement/Announcement.cpp +++ b/apps/announcement/Announcement.cpp @@ -118,6 +118,9 @@ AnnouncementDialog::AnnouncementDialog(const string& filename, UACAuthCred* credentials) : filename(filename), cred(credentials) { + // we can drop all received packets + // this disables DTMF detection as well + setReceiving(false); } AnnouncementDialog::~AnnouncementDialog() @@ -127,10 +130,6 @@ AnnouncementDialog::~AnnouncementDialog() void AnnouncementDialog::onSessionStart() { DBG("AnnouncementDialog::onSessionStart()...\n"); - // we can drop all received packets - // this disables DTMF detection as well - setReceiving(false); - if(wav_file.open(filename,AmAudioFile::Read)) { ERROR("Couldn't open file %s.\n", filename.c_str()); throw string("AnnouncementDialog::onSessionStart: Cannot open file\n"); _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
