[asterisk-commits] mnicholson: testsuite/asterisk/trunk r1416 - /asterisk/trunk/asttest/lib/lua/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Mar 18 09:33:20 CDT 2011


Author: mnicholson
Date: Fri Mar 18 09:33:16 2011
New Revision: 1416

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=1416
Log:
added "Status" manager action helper

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=1416&r1=1415&r2=1416
==============================================================================
--- asterisk/trunk/asttest/lib/lua/astlib.lua (original)
+++ asterisk/trunk/asttest/lib/lua/astlib.lua Fri Mar 18 09:33:16 2011
@@ -1062,3 +1062,14 @@
 	return manager.action.new("Ping")
 end
 
+--- Status action.
+function manager.action.status(channel)
+	local a = manager.action.new("Status")
+
+	if channel then
+		a["Channel"] = channel
+	end
+
+	return a
+end
+




More information about the asterisk-commits mailing list