Added "message" variable in routing scope context.

Removed current message parameters from routing scope context.


git-svn-id: http://yate.null.ro/svn/yate/trunk@5156 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2012-06-27 12:57:18 +00:00
parent ee8ca1d7d8
commit 92efe58739
1 changed files with 2 additions and 2 deletions

View File

@ -1023,9 +1023,9 @@ bool JsAssist::init()
}
if (jsm && jsm->ref()) {
JsObject* cc = JsObject::buildCallContext(ctx->mutex(),jsm);
ExpEvaluator::pushOne(m_runner->stack(),new ExpWrapper(cc,cc->toString(),true));
jsm->ref();
ExpEvaluator::pushOne(m_runner->stack(),new ExpWrapper(jsm,"(message)"));
cc->params().setParam(new ExpWrapper(jsm,"message"));
ExpEvaluator::pushOne(m_runner->stack(),new ExpWrapper(cc,cc->toString(),true));
}
}
if (!m_runner->callable("onLoad"))