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:
parent
cfe4edbc26
commit
cf0d11c435
|
@ -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'",
|
||||
|
|
Loading…
Reference in New Issue