From 5781616b955145796cf19d1bdfe186accdb598bb Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Thu, 21 May 2009 17:17:17 +0000 Subject: [PATCH] add monitor session information id to session git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1404 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- apps/dsm/DSM.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/dsm/DSM.cpp b/apps/dsm/DSM.cpp index fc299a91..2ee444bb 100644 --- a/apps/dsm/DSM.cpp +++ b/apps/dsm/DSM.cpp @@ -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");