diff --git a/UPGRADE.txt b/UPGRADE.txt index f486241dc9a4631315b79dc56faee5ea14337c8b..3525621d3940160b234b96a172ff99807f179d04 100644 --- a/UPGRADE.txt +++ b/UPGRADE.txt @@ -47,6 +47,7 @@ pbx_lua: (such as app.goto). Now when an application such as app.goto() is called, control is returned back to the pbx engine and the current extension function stops executing. + - the autoservice now defaults to being on by default - autoservice_start() and autoservice_start() no longer return a value. =========================================================== diff --git a/pbx/pbx_lua.c b/pbx/pbx_lua.c index 25acc4981a9ece928d6e2eb4f1e94d8753d8c1aa..cae82adba51247c8b6a4ff9a68ebd95007f0376d 100644 --- a/pbx/pbx_lua.c +++ b/pbx/pbx_lua.c @@ -566,7 +566,7 @@ static void lua_create_autoservice_functions(lua_State *L) lua_pushcfunction(L, &lua_autoservice_status); lua_setglobal(L, "autoservice_status"); - lua_pushboolean(L, 0); + lua_pushboolean(L, 1); lua_setfield(L, LUA_REGISTRYINDEX, "autoservice"); }