sbc: using INTERNAL_ERROR define everywhere

sayer/1.4-spce2.6
Stefan Sayer 16 years ago
parent 94cbe91b11
commit c2f1b6ecb7

@ -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

Loading…
Cancel
Save