From: Jason Parker Date: Fri, 7 Dec 2007 21:28:49 +0000 (+0000) Subject: Update documentation for pbx_lua. X-Git-Tag: 1.6.0-beta1~3^2~496 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc607d5be41c3bd1cb44317672706758f52ad512;p=thirdparty%2Fasterisk.git Update documentation for pbx_lua. Closes issue #11492, patch by mnicholson. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91832 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/configs/extensions.lua.sample b/configs/extensions.lua.sample index 7761281203..691e461fbd 100644 --- a/configs/extensions.lua.sample +++ b/configs/extensions.lua.sample @@ -78,9 +78,9 @@ TRUNKMSD = 1 -- channel.func_name(1,2,3):set("value") -- value = channel.func_name(1,2,3):get() -- --- channel["func_name(1|2|3)"]:set("value") --- channel["func_name(1|2|3)"] = "value" --- value = channel["func_name(1|2|3)"]:get() +-- channel["func_name(1,2,3)"]:set("value") +-- channel["func_name(1,2,3)"] = "value" +-- value = channel["func_name(1,2,3)"]:get() -- -- Note the use of the ':' operator to access the get() and set() -- methods. diff --git a/pbx/pbx_lua.c b/pbx/pbx_lua.c index 143bea5e40..a23b31ee2e 100644 --- a/pbx/pbx_lua.c +++ b/pbx/pbx_lua.c @@ -301,7 +301,7 @@ static int lua_get_variable_value(lua_State *L) * seen in extensions.lua. * * \code - * channel.variable:set() + * channel.variable:set("value") * \endcode */ static int lua_set_variable_value(lua_State *L)