Module: sems Branch: sayer/offer_answer Commit: 0dc5aea381542b5c743f1112739ef16b405968bb URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=0dc5aea381542b5c743f1112739ef16b405968bb
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Tue Oct 19 20:02:24 2010 +0200 removed unnecessary err handling code --- apps/early_announce/EarlyAnnounce.cpp | 25 ++++++++----------------- 1 files changed, 8 insertions(+), 17 deletions(-) diff --git a/apps/early_announce/EarlyAnnounce.cpp b/apps/early_announce/EarlyAnnounce.cpp index 3be9b34..090537e 100644 --- a/apps/early_announce/EarlyAnnounce.cpp +++ b/apps/early_announce/EarlyAnnounce.cpp @@ -268,21 +268,11 @@ int EarlyAnnounceFactory::onLoad() void EarlyAnnounceDialog::onInvite(const AmSipRequest& req) { - try { - if(dlg.reply(req,183,"Session Progress", - "application/sdp") != 0){ - - throw AmSession::Exception(500,"could not reply"); - } - else { - invite_req = req; - } - - } catch(const AmSession::Exception& e) { - - ERROR("%i %s\n",e.code,e.reason.c_str()); - setStopped(); - AmSipDialog::reply_error(req,e.code,e.reason); + if(dlg.reply(req,183,"Session Progress", + "application/sdp") != 0){ + throw AmSession::Exception(500,"could not reply"); + } else { + invite_req = req; } } @@ -346,9 +336,10 @@ void EarlyAnnounceDialog::onEarlySessionStart() // this disables DTMF detection as well setReceiving(false); - DBG("EarlyAnnounceDialog::onSessionStart\n"); + DBG("EarlyAnnounceDialog::onEarlySessionStart\n"); + if(wav_file.open(filename,AmAudioFile::Read)) - throw string("EarlyAnnounceDialog::onSessionStart: Cannot open file\n"); + throw string("EarlyAnnounceDialog::onEarlySessionStart: Cannot open file"); setOutput(&wav_file); } _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
