Module: sems
Branch: master
Commit: c2f1b6ecb77f5508bd31d9d85a3f59fa7b9ab47a
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=c2f1b6ecb77f5508bd31d9d85a3f59fa7b9ab47a

Author: Stefan Sayer <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date:   Mon Jan 10 16:43:46 2011 +0100

sbc: using INTERNAL_ERROR define everywhere

---

 apps/sbc/SBC.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/apps/sbc/SBC.cpp b/apps/sbc/SBC.cpp
index 3d01ae3..5ed9d2e 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

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to