diff --git a/core/AmSipDispatcher.cpp b/core/AmSipDispatcher.cpp index 34f32611..ad58aaff 100644 --- a/core/AmSipDispatcher.cpp +++ b/core/AmSipDispatcher.cpp @@ -43,33 +43,10 @@ void AmSipDispatcher::handleSipMsg(AmSipRequest &req) DBG("method: `%s' [%zd].\n", req.method.c_str(), req.method.length()); - if((req.method == "INVITE") || (req.method == "REFER")){ + if((req.method == "INVITE")){ sess_cont->startSessionUAS(req); } -// else if(req.method == "REFER") { -// // Out-of-dialog REFER -// AmSipRequest n_req; -// n_req.method = "INVITE"; -// n_req.dstip = AmConfig::LocalIP; - -// n_req.from = req.to; -// n_req.from_uri = req.r_uri; -// n_req.from_tag = AmSession::getNewId(); -// n_req.user = req.user; - -// n_req.r_uri = uri_from_name_addr(getHeader(req.hdrs, "Refer-To")); -// n_req.to = getHeader(req.hdrs, "Refer-To"); -// n_req.to_tag = ""; -// n_req.cmd = req.cmd; // application from REFER - -// n_req.callid = AmSession::getNewId() + "@" + AmConfig::LocalIP; - -// if (AmSessionContainer::instance()->startSessionUAC(n_req) != NULL) -// AmSipDialog::reply_error(req,202,"Accepted"); -// else -// AmSipDialog::reply_error(req,500,"Not supported here"); -// } else if(req.method == "OPTIONS"){ // Basic OPTIONS support