Added ${param} replacement capability in operation parameters.

git-svn-id: http://yate.null.ro/svn/yate/trunk@1237 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2007-03-27 14:25:33 +00:00
parent 99754fc43b
commit 60741080f8
1 changed files with 4 additions and 2 deletions

View File

@ -346,9 +346,11 @@ bool PBXAssist::msgTone(Message& msg)
(s->name() == "pbxprompt") ||
(s->name() == "message"))
continue;
m->addParam(s->name(),m_tones.replaceMatches(*s));
String val = m_tones.replaceMatches(*s);
msg.replaceParams(val);
m->setParam(s->name(),val);
}
m->addParam("pbxstate",m_state);
m->setParam("pbxstate",m_state);
Engine::enqueue(m);
}
// we may paste a string instead of just clearing the key buffer