[asterisk-commits] mmichelson: branch mmichelson/srv_sip_outbound r211 - /asterisk/team/mmichels...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Apr 6 12:35:28 CDT 2010


Author: mmichelson
Date: Tue Apr  6 12:35:26 2010
New Revision: 211

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=211
Log:
It helps to actually run Asterisk for the test...


Modified:
    asterisk/team/mmichelson/srv_sip_outbound/tests/sip_outbound_address/test.lua

Modified: asterisk/team/mmichelson/srv_sip_outbound/tests/sip_outbound_address/test.lua
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mmichelson/srv_sip_outbound/tests/sip_outbound_address/test.lua?view=diff&rev=211&r1=210&r2=211
==============================================================================
--- asterisk/team/mmichelson/srv_sip_outbound/tests/sip_outbound_address/test.lua (original)
+++ asterisk/team/mmichelson/srv_sip_outbound/tests/sip_outbound_address/test.lua Tue Apr  6 12:35:26 2010
@@ -72,7 +72,7 @@
 	t2:term_or_kill()
 end
 
-function test_call(uac_scenario, handler, local_port)
+function test_call(scenario, handler, local_port)
 	m:register_event("VarSet", handler)
 	local uas1, uas2 = setup_uas()
 	local t1 = sipp_exec(scenario, local_port)
@@ -89,9 +89,19 @@
 	kill_uas(uas1, uas2)
 end
 
+a = ast.new()
+a:load_config("configs/sip.conf")
+a:load_config("configs/extensions.conf")
+a:generate_manager_conf()
+a:spawn()
+
+manager_setup(a)
+
 test_call("uac1.xml", varset_event_one, "6000")
 test_call("uac2.xml", varset_event_two, "6000")
 test_call("uac3.xml", varset_event_two, "6000")
 test_call("uac4.xml", varset_event_two, "6000")
 test_call("uac5.xml", varset_event_two, "6000")
 test_call("uac6.xml", varset_event_one, "6000")
+
+a:term_or_kill()




More information about the asterisk-commits mailing list