Module: sems Branch: sayer/offer_answer Commit: 47d7cfc910ecec13228c5f0d3853a8813c5f901c URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=47d7cfc910ecec13228c5f0d3853a8813c5f901c
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Tue Oct 19 23:41:50 2010 +0200 fix: voicemail --- apps/voicemail/AnswerMachine.cpp | 4 +++- apps/voicemail/AnswerMachine.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/voicemail/AnswerMachine.cpp b/apps/voicemail/AnswerMachine.cpp index 264c2b3..ddf43a7 100644 --- a/apps/voicemail/AnswerMachine.cpp +++ b/apps/voicemail/AnswerMachine.cpp @@ -837,7 +837,7 @@ void AnswerMachineDialog::process(AmEvent* event) AmSession::process(event); } -void AnswerMachineDialog::onSessionStart(const AmSipRequest& req) +void AnswerMachineDialog::onSessionStart() { // disable DTMF detection - don't use DTMF here setDtmfDetectionEnabled(false); @@ -907,6 +907,8 @@ void AnswerMachineDialog::onSessionStart(const AmSipRequest& req) void AnswerMachineDialog::onBye(const AmSipRequest& req) { + dlg.reply(req,200,"OK"); + setInOut(NULL, NULL); saveMessage(); setStopped(); diff --git a/apps/voicemail/AnswerMachine.h b/apps/voicemail/AnswerMachine.h index e451801..0732103 100644 --- a/apps/voicemail/AnswerMachine.h +++ b/apps/voicemail/AnswerMachine.h @@ -143,7 +143,7 @@ class AnswerMachineDialog : public AmSession void process(AmEvent* event); - void onSessionStart(const AmSipRequest& req); + void onSessionStart(); void onBye(const AmSipRequest& req); void onDtmf(int event, int duration_msec) {} _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
