Enclosed is a small patch that allows lua_run() to return an integer
value. If the return value is not an integer, 1 is returned (like is
true with current git master.) As a side effect, lua scripts can now
exit() the sip-router script by returning 0.
Example:
Lua script:
test_equality = function ( a , b )
if a == b then
return 1
else
return -1
end
sip-router script:
if (lua_run("test_equality", "$fU", "$tU")) {
xdbg("SCRIPT: The values are equal\n");
}