From c2f1b6ecb77f5508bd31d9d85a3f59fa7b9ab47a Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Mon, 10 Jan 2011 16:43:46 +0100 Subject: [PATCH] sbc: using INTERNAL_ERROR define everywhere --- apps/sbc/SBC.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/sbc/SBC.cpp b/apps/sbc/SBC.cpp index 3d01ae3d..5ed9d2eb 100644 --- a/apps/sbc/SBC.cpp +++ b/apps/sbc/SBC.cpp @@ -201,7 +201,7 @@ AmSession* SBCFactory::onInvite(const AmSipRequest& req) profiles_mut.unlock(); delete b2b_dlg; ERROR("could not get a session timer event handler\n"); - throw AmSession::Exception(500,"Server internal error"); + throw AmSession::Exception(500, SIP_REPLY_SERVER_INTERNAL_ERROR); } if (h->configure(sst_cfg)){ @@ -848,7 +848,7 @@ void SBCDialog::createCalleeSession() if(!h) { ERROR("could not get a session timer event handler\n"); delete callee_session; - throw AmSession::Exception(500,"Server internal error"); + throw AmSession::Exception(500, SIP_REPLY_SERVER_INTERNAL_ERROR); } AmConfigReader& sst_cfg = call_profile.use_global_sst_config ? SBCFactory::cfg: call_profile.cfg; // override with profile config