Added pbxgreedy option to stop looking for other PBX operations.

git-svn-id: http://yate.null.ro/svn/yate/trunk@1479 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2007-11-19 23:35:28 +00:00
parent cd69a0d9e3
commit e1605461e4
1 changed files with 5 additions and 0 deletions

View File

@ -346,6 +346,10 @@ bool PBXAssist::msgTone(Message& msg)
putPrompt(tmp);
}
// if we're greedy prepare to exit the loop and skip all other sections
if (sect->getBoolValue("pbxgreedy"))
i = n;
// we may paste a string instead of just clearing the key buffer
String newTones = sect->getValue("pastekeys");
if (newTones) {
@ -380,6 +384,7 @@ bool PBXAssist::msgTone(Message& msg)
(s->name() == "pbxstates") ||
(s->name() == "operation") ||
(s->name() == "pbxprompt") ||
(s->name() == "pbxgreedy") ||
(s->name() == "message"))
continue;
String val = m_tones.replaceMatches(*s);