Module: sems Branch: 1.4 Commit: bed6c2545a14b62adb746bb08a3d5554e40cded1 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=bed6c2545a14b62adb746bb08a3d5554e40cded1
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Mon Mar 12 16:48:43 2012 +0100 b/f: in webconference app, handle session timer timeout and RTP timeout by leaving the conference --- apps/webconference/WebConferenceDialog.cpp | 12 ++++++++++++ apps/webconference/WebConferenceDialog.h | 3 +++ 2 files changed, 15 insertions(+), 0 deletions(-) diff --git a/apps/webconference/WebConferenceDialog.cpp b/apps/webconference/WebConferenceDialog.cpp index 7622cc3..7e73bb3 100644 --- a/apps/webconference/WebConferenceDialog.cpp +++ b/apps/webconference/WebConferenceDialog.cpp @@ -248,6 +248,18 @@ void WebConferenceDialog::onBye(const AmSipRequest& req) disconnectConference(); } +void WebConferenceDialog::onRtpTimeout() { + DBG("RTP timeout, removing from conference\n"); + disconnectConference(); + AmSession::onRtpTimeout(); +} + +void WebConferenceDialog::onSessionTimeout() { + DBG("Session Timer: Timeout, removing from conference.\n"); + disconnectConference(); + AmSession::onSessionTimeout(); +} + void WebConferenceDialog::disconnectConference() { play_list.close(); setInOut(NULL,NULL); diff --git a/apps/webconference/WebConferenceDialog.h b/apps/webconference/WebConferenceDialog.h index 4923792..0185b11 100644 --- a/apps/webconference/WebConferenceDialog.h +++ b/apps/webconference/WebConferenceDialog.h @@ -105,6 +105,9 @@ public: void onDtmf(int event, int duration); void onBye(const AmSipRequest& req); + void onSessionTimeout(); + void onRtpTimeout(); + UACAuthCred* getCredentials() { return cred; } }; _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
