mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Default to starting an autoservice in pbx_lua. The autoservice is
automatically stopped when applications are executed, so this shouldn't cause any problems. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@317806 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -47,6 +47,7 @@ pbx_lua:
|
|||||||
(such as app.goto). Now when an application such as app.goto() is called,
|
(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
|
control is returned back to the pbx engine and the current extension
|
||||||
function stops executing.
|
function stops executing.
|
||||||
|
- the autoservice now defaults to being on by default
|
||||||
- autoservice_start() and autoservice_start() no longer return a value.
|
- autoservice_start() and autoservice_start() no longer return a value.
|
||||||
|
|
||||||
===========================================================
|
===========================================================
|
||||||
|
@@ -566,7 +566,7 @@ static void lua_create_autoservice_functions(lua_State *L)
|
|||||||
lua_pushcfunction(L, &lua_autoservice_status);
|
lua_pushcfunction(L, &lua_autoservice_status);
|
||||||
lua_setglobal(L, "autoservice_status");
|
lua_setglobal(L, "autoservice_status");
|
||||||
|
|
||||||
lua_pushboolean(L, 0);
|
lua_pushboolean(L, 1);
|
||||||
lua_setfield(L, LUA_REGISTRYINDEX, "autoservice");
|
lua_setfield(L, LUA_REGISTRYINDEX, "autoservice");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user