Allow returning true but not setting retValue from regexroute.

git-svn-id: http://voip.null.ro/svn/yate@4976 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2012-03-26 00:28:33 +00:00
parent cfe4edbc26
commit cf0d11c435
1 changed files with 5 additions and 3 deletions

View File

@ -559,9 +559,11 @@ static bool oneContext(Message &msg, String &str, const String &context, String
// special case: do nothing on empty target
continue;
}
else if (val == "return") {
NDebug("RegexRoute",DebugAll,"Returning false from context '%s'", context.c_str());
return false;
else if (val.startSkip("return")) {
bool ok = val.toBoolean();
NDebug("RegexRoute",DebugAll,"Returning %s from context '%s'",
String::boolText(ok),context.c_str());
return ok;
}
else if (val.startSkip("goto") || val.startSkip("jump")) {
NDebug("RegexRoute",DebugAll,"Jumping to context '%s' by rule #%u '%s'",