add monitor session information id to session

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1404 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 17 years ago
parent 8d8040164b
commit 5781616b95

@ -384,7 +384,8 @@ AmSession* DSMFactory::onInvite(const AmSipRequest& req)
if (ret.size()>1) {
DBG("multiple call info found - picking the first one\n");
}
sess_id.push(ret.get(0).asCStr());
const char* session_id = ret.get(0).asCStr();
sess_id.push(session_id);
MONITORING_GLOBAL_INTERFACE->invoke("get",sess_id,sess_params);
if ((sess_params.getType()!=AmArg::Array)||
@ -404,6 +405,7 @@ AmSession* DSMFactory::onInvite(const AmSipRequest& req)
throw AmSession::Exception(488, "Not Acceptable Here");
}
AmArg2DSMStrMap(sess_dict["appParams"], vars);
vars["mon_session_record"] = session_id;
#else
ERROR("using $(mon_select) for dsm application, but compiled without monitoring support!\n");

Loading…
Cancel
Save