From e1605461e47e8a5eed7759c033d3a07a348e0142 Mon Sep 17 00:00:00 2001 From: paulc Date: Mon, 19 Nov 2007 23:35:28 +0000 Subject: [PATCH] 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 --- modules/server/pbxassist.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/server/pbxassist.cpp b/modules/server/pbxassist.cpp index 062eda9b..e75f7bad 100644 --- a/modules/server/pbxassist.cpp +++ b/modules/server/pbxassist.cpp @@ -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);