From f99f9cc9a410a0660b525e37eecccdbb0c7d64d0 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Tue, 18 May 2010 16:45:30 +0000 Subject: [PATCH] There is no MonSelectFallback if we compile w/o USE_MONITORING, so we can't use macro FALLBACK_OR_EXCEPTION here - we need to call AmSession::Exception(...) directly. Signed-off-by: Peter Lemenkov git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1908 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- apps/dsm/DSM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dsm/DSM.cpp b/apps/dsm/DSM.cpp index 694f0d99..a7e30ecc 100644 --- a/apps/dsm/DSM.cpp +++ b/apps/dsm/DSM.cpp @@ -592,7 +592,7 @@ void DSMFactory::runMonitorAppSelect(const AmSipRequest& req, string& start_diag #else ERROR("using $(mon_select) for dsm application, " "but compiled without monitoring support!\n"); - FALLBACK_OR_EXCEPTION(500, "Internal Server Error"); + throw AmSession::Exception(500, "Internal Server Error"); #endif #undef FALLBACK_OR_EXCEPTION