[asterisk-commits] mnicholson: testsuite/asterisk/trunk r141 - /asterisk/trunk/asttest/lib/lua/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Mar 25 11:02:04 CDT 2010
Author: mnicholson
Date: Thu Mar 25 11:02:01 2010
New Revision: 141
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=141
Log:
Add support for calling ast.manager.action.new() instead of ast.manager.action:new()
Modified:
asterisk/trunk/asttest/lib/lua/astlib.lua
Modified: asterisk/trunk/asttest/lib/lua/astlib.lua
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/asttest/lib/lua/astlib.lua?view=diff&rev=141&r1=140&r2=141
==============================================================================
--- asterisk/trunk/asttest/lib/lua/astlib.lua (original)
+++ asterisk/trunk/asttest/lib/lua/astlib.lua Thu Mar 25 11:02:01 2010
@@ -676,6 +676,13 @@
function manager.action:new(action)
local a = manager.message:new()
+
+ -- support ast.manager.action.new() syntax
+ -- XXX eventually this should be the only syntax allowed
+ if action == nil and type(self) == "string" then
+ action = self
+ end
+
a["Action"] = action
return a
end
More information about the asterisk-commits
mailing list