- some cleanup work...

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@993 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Raphael Coeffic 18 years ago
parent 94066ce44e
commit 5ae3065ba9

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

Loading…
Cancel
Save