[asterisk-commits] qwell: trunk r91832 - in /trunk: configs/extensions.lua.sample pbx/pbx_lua.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Dec 7 15:28:50 CST 2007


Author: qwell
Date: Fri Dec  7 15:28:49 2007
New Revision: 91832

URL: http://svn.digium.com/view/asterisk?view=rev&rev=91832
Log:
Update documentation for pbx_lua.

Closes issue #11492, patch by mnicholson.

Modified:
    trunk/configs/extensions.lua.sample
    trunk/pbx/pbx_lua.c

Modified: trunk/configs/extensions.lua.sample
URL: http://svn.digium.com/view/asterisk/trunk/configs/extensions.lua.sample?view=diff&rev=91832&r1=91831&r2=91832
==============================================================================
--- trunk/configs/extensions.lua.sample (original)
+++ trunk/configs/extensions.lua.sample Fri Dec  7 15:28:49 2007
@@ -78,9 +78,9 @@
 --   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.

Modified: trunk/pbx/pbx_lua.c
URL: http://svn.digium.com/view/asterisk/trunk/pbx/pbx_lua.c?view=diff&rev=91832&r1=91831&r2=91832
==============================================================================
--- trunk/pbx/pbx_lua.c (original)
+++ trunk/pbx/pbx_lua.c Fri Dec  7 15:28:49 2007
@@ -301,7 +301,7 @@
  * seen in extensions.lua.
  *
  * \code
- * channel.variable:set()
+ * channel.variable:set("value")
  * \endcode
  */
 static int lua_set_variable_value(lua_State *L)




More information about the asterisk-commits mailing list