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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 29 11:20:08 CDT 2010


Author: mnicholson
Date: Thu Jul 29 11:20:04 2010
New Revision: 638

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=638
Log:
Make the manager listen on port 5038 and use a different local ip instead of a different host by default.

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=638&r1=637&r2=638
==============================================================================
--- asterisk/trunk/asttest/lib/lua/astlib.lua (original)
+++ asterisk/trunk/asttest/lib/lua/astlib.lua Thu Jul 29 11:20:04 2010
@@ -227,7 +227,7 @@
 function asterisk:manager_connect()
 	local m = manager:new()
 
-	local res, err = m:connect("localhost", self.configs["manager.conf"]["general"].port)
+	local res, err = m:connect(self.configs["manager.conf"]["general"].bindaddr, self.configs["manager.conf"]["general"].port)
 	if not res then
 		return nil, err
 	end
@@ -315,8 +315,8 @@
 	local c = self:new_config("manager.conf")
 	local s = c:new_section("general")
 	s["enabled"] = "yes"
-	s["bindaddr"] = "0.0.0.0"
-	s["port"] = "538" .. self.index
+	s["bindaddr"] = "127.0.0." .. self.index
+	s["port"] = "5038"
 
 	s = c:new_section("asttest")
 	s["secret"] = "asttest"




More information about the asterisk-commits mailing list