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:
parent
cd69a0d9e3
commit
e1605461e4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue