[asterisk-commits] rmudgett: branch rmudgett/srtp r1679 - in /asterisk/team/rmudgett/srtp/tests/...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jun 24 12:15:23 CDT 2011
Author: rmudgett
Date: Fri Jun 24 12:15:20 2011
New Revision: 1679
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=1679
Log:
There is no need to wait for the other side to get its test result since
the AGI connection is not dropped until the reactor times out.
Modified:
asterisk/team/rmudgett/srtp/tests/channels/SIP/noload_res_srtp/configs/ast1/extensions.conf
asterisk/team/rmudgett/srtp/tests/channels/SIP/noload_res_srtp/configs/ast2/extensions.conf
asterisk/team/rmudgett/srtp/tests/channels/SIP/noload_res_srtp/run-test
asterisk/team/rmudgett/srtp/tests/channels/SIP/noload_res_srtp_attempt_srtp/configs/ast1/extensions.conf
asterisk/team/rmudgett/srtp/tests/channels/SIP/noload_res_srtp_attempt_srtp/configs/ast2/extensions.conf
asterisk/team/rmudgett/srtp/tests/channels/SIP/noload_res_srtp_attempt_srtp/run-test
asterisk/team/rmudgett/srtp/tests/channels/SIP/sip_srtp/configs/ast1/extensions.conf
asterisk/team/rmudgett/srtp/tests/channels/SIP/sip_srtp/configs/ast2/extensions.conf
asterisk/team/rmudgett/srtp/tests/channels/SIP/sip_srtp/run-test
Modified: asterisk/team/rmudgett/srtp/tests/channels/SIP/noload_res_srtp/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/srtp/tests/channels/SIP/noload_res_srtp/configs/ast1/extensions.conf?view=diff&rev=1679&r1=1678&r2=1679
==============================================================================
--- asterisk/team/rmudgett/srtp/tests/channels/SIP/noload_res_srtp/configs/ast1/extensions.conf (original)
+++ asterisk/team/rmudgett/srtp/tests/channels/SIP/noload_res_srtp/configs/ast1/extensions.conf Fri Jun 24 12:15:20 2011
@@ -7,5 +7,5 @@
exten => 1000,1,Answer()
exten => 1000,n,Set(TEST_RESULT=${CHANNEL} secure_media=${CHANNEL(secure_media)})
exten => 1000,n,AGI(agi://127.0.0.1:4573)
-; Give the other side a chance to get its test result
-exten => 1000,n,Wait(5)
+;; Give the other side a chance to get its test result
+;exten => 1000,n,Wait(5)
Modified: asterisk/team/rmudgett/srtp/tests/channels/SIP/noload_res_srtp/configs/ast2/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/srtp/tests/channels/SIP/noload_res_srtp/configs/ast2/extensions.conf?view=diff&rev=1679&r1=1678&r2=1679
==============================================================================
--- asterisk/team/rmudgett/srtp/tests/channels/SIP/noload_res_srtp/configs/ast2/extensions.conf (original)
+++ asterisk/team/rmudgett/srtp/tests/channels/SIP/noload_res_srtp/configs/ast2/extensions.conf Fri Jun 24 12:15:20 2011
@@ -7,5 +7,5 @@
exten => 2000,1,Answer()
exten => 2000,n,Set(TEST_RESULT=${CHANNEL} secure_media=${CHANNEL(secure_media)})
exten => 2000,n,AGI(agi://127.0.0.1:4573)
-; Give the other side a chance to get its test result
-exten => 2000,n,Wait(5)
+;; Give the other side a chance to get its test result
+;exten => 2000,n,Wait(5)
Modified: asterisk/team/rmudgett/srtp/tests/channels/SIP/noload_res_srtp/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/srtp/tests/channels/SIP/noload_res_srtp/run-test?view=diff&rev=1679&r1=1678&r2=1679
==============================================================================
--- asterisk/team/rmudgett/srtp/tests/channels/SIP/noload_res_srtp/run-test (original)
+++ asterisk/team/rmudgett/srtp/tests/channels/SIP/noload_res_srtp/run-test Fri Jun 24 12:15:20 2011
@@ -59,6 +59,11 @@
else:
print "Don't know which side is connected."
+ # Hold the AGI connection until the reactor times out
+ # so the other side has a chance to get its test result.
+ ## Drop the AGI connection
+ #agi.finish()
+
agi.getVariable("TEST_RESULT").addCallback(get_test_result)
def stop_asterisk(self):
Modified: asterisk/team/rmudgett/srtp/tests/channels/SIP/noload_res_srtp_attempt_srtp/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/srtp/tests/channels/SIP/noload_res_srtp_attempt_srtp/configs/ast1/extensions.conf?view=diff&rev=1679&r1=1678&r2=1679
==============================================================================
--- asterisk/team/rmudgett/srtp/tests/channels/SIP/noload_res_srtp_attempt_srtp/configs/ast1/extensions.conf (original)
+++ asterisk/team/rmudgett/srtp/tests/channels/SIP/noload_res_srtp_attempt_srtp/configs/ast1/extensions.conf Fri Jun 24 12:15:20 2011
@@ -7,5 +7,5 @@
exten => 1000,1,Answer()
exten => 1000,n,Set(TEST_RESULT=${CHANNEL} secure_media=${CHANNEL(secure_media)})
exten => 1000,n,AGI(agi://127.0.0.1:4573)
-; Give the other side a chance to get its test result
-exten => 1000,n,Wait(5)
+;; Give the other side a chance to get its test result
+;exten => 1000,n,Wait(5)
Modified: asterisk/team/rmudgett/srtp/tests/channels/SIP/noload_res_srtp_attempt_srtp/configs/ast2/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/srtp/tests/channels/SIP/noload_res_srtp_attempt_srtp/configs/ast2/extensions.conf?view=diff&rev=1679&r1=1678&r2=1679
==============================================================================
--- asterisk/team/rmudgett/srtp/tests/channels/SIP/noload_res_srtp_attempt_srtp/configs/ast2/extensions.conf (original)
+++ asterisk/team/rmudgett/srtp/tests/channels/SIP/noload_res_srtp_attempt_srtp/configs/ast2/extensions.conf Fri Jun 24 12:15:20 2011
@@ -7,5 +7,5 @@
exten => 2000,1,Answer()
exten => 2000,n,Set(TEST_RESULT=${CHANNEL} secure_media=${CHANNEL(secure_media)})
exten => 2000,n,AGI(agi://127.0.0.1:4573)
-; Give the other side a chance to get its test result
-exten => 2000,n,Wait(5)
+;; Give the other side a chance to get its test result
+;exten => 2000,n,Wait(5)
Modified: asterisk/team/rmudgett/srtp/tests/channels/SIP/noload_res_srtp_attempt_srtp/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/srtp/tests/channels/SIP/noload_res_srtp_attempt_srtp/run-test?view=diff&rev=1679&r1=1678&r2=1679
==============================================================================
--- asterisk/team/rmudgett/srtp/tests/channels/SIP/noload_res_srtp_attempt_srtp/run-test (original)
+++ asterisk/team/rmudgett/srtp/tests/channels/SIP/noload_res_srtp_attempt_srtp/run-test Fri Jun 24 12:15:20 2011
@@ -92,6 +92,11 @@
else:
print "Don't know which side is connected."
+ # Hold the AGI connection until the reactor times out
+ # so the other side has a chance to get its test result.
+ ## Drop the AGI connection
+ #agi.finish()
+
agi.getVariable("TEST_RESULT").addCallback(get_test_result)
def stop_asterisk(self):
Modified: asterisk/team/rmudgett/srtp/tests/channels/SIP/sip_srtp/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/srtp/tests/channels/SIP/sip_srtp/configs/ast1/extensions.conf?view=diff&rev=1679&r1=1678&r2=1679
==============================================================================
--- asterisk/team/rmudgett/srtp/tests/channels/SIP/sip_srtp/configs/ast1/extensions.conf (original)
+++ asterisk/team/rmudgett/srtp/tests/channels/SIP/sip_srtp/configs/ast1/extensions.conf Fri Jun 24 12:15:20 2011
@@ -7,5 +7,5 @@
exten => 1000,1,Answer()
exten => 1000,n,Set(TEST_RESULT=${CHANNEL} secure_media=${CHANNEL(secure_media)})
exten => 1000,n,AGI(agi://127.0.0.1:4573)
-; Give the other side a chance to get its test result
-exten => 1000,n,Wait(5)
+;; Give the other side a chance to get its test result
+;exten => 1000,n,Wait(5)
Modified: asterisk/team/rmudgett/srtp/tests/channels/SIP/sip_srtp/configs/ast2/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/srtp/tests/channels/SIP/sip_srtp/configs/ast2/extensions.conf?view=diff&rev=1679&r1=1678&r2=1679
==============================================================================
--- asterisk/team/rmudgett/srtp/tests/channels/SIP/sip_srtp/configs/ast2/extensions.conf (original)
+++ asterisk/team/rmudgett/srtp/tests/channels/SIP/sip_srtp/configs/ast2/extensions.conf Fri Jun 24 12:15:20 2011
@@ -7,5 +7,5 @@
exten => 2000,1,Answer()
exten => 2000,n,Set(TEST_RESULT=${CHANNEL} secure_media=${CHANNEL(secure_media)})
exten => 2000,n,AGI(agi://127.0.0.1:4573)
-; Give the other side a chance to get its test result
-exten => 2000,n,Wait(5)
+;; Give the other side a chance to get its test result
+;exten => 2000,n,Wait(5)
Modified: asterisk/team/rmudgett/srtp/tests/channels/SIP/sip_srtp/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/srtp/tests/channels/SIP/sip_srtp/run-test?view=diff&rev=1679&r1=1678&r2=1679
==============================================================================
--- asterisk/team/rmudgett/srtp/tests/channels/SIP/sip_srtp/run-test (original)
+++ asterisk/team/rmudgett/srtp/tests/channels/SIP/sip_srtp/run-test Fri Jun 24 12:15:20 2011
@@ -59,6 +59,11 @@
else:
print "Don't know which side is connected."
+ # Hold the AGI connection until the reactor times out
+ # so the other side has a chance to get its test result.
+ ## Drop the AGI connection
+ #agi.finish()
+
agi.getVariable("TEST_RESULT").addCallback(get_test_result)
def stop_asterisk(self):
More information about the asterisk-commits
mailing list