[asterisk-commits] mjordan: testsuite/asterisk/trunk r3791 - /asterisk/trunk/tests/channels/SIP/...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon May 20 14:43:32 CDT 2013


Author: mjordan
Date: Mon May 20 14:43:28 2013
New Revision: 3791

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=3791
Log:
Don't create a race condition between hanging up ast1 and ast2

In the SIP TLS test, Asterisk instance 1 sends a DTMF tone to Asterisk
instance 2 and waits for the second instance to break it out of a
Background application. Asterisk instance 2 sends a DTMF and then hangs
up. The problem is the hangup of Asterisk instance 2 may cause instance
1 to hangup prior to servicing the DTMF. This race condition always
existed; however, with the DTMF/AMI changes, it's much more likely to hit
it.

Now only the last instance calls Hangup. The other instance will Echo until
hung up.

Modified:
    asterisk/trunk/tests/channels/SIP/sip_tls_call/configs/ast1/extensions.conf

Modified: asterisk/trunk/tests/channels/SIP/sip_tls_call/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/sip_tls_call/configs/ast1/extensions.conf?view=diff&rev=3791&r1=3790&r2=3791
==============================================================================
--- asterisk/trunk/tests/channels/SIP/sip_tls_call/configs/ast1/extensions.conf (original)
+++ asterisk/trunk/tests/channels/SIP/sip_tls_call/configs/ast1/extensions.conf Mon May 20 14:43:28 2013
@@ -11,4 +11,4 @@
 exten => 5,1,NoOp()
 exten => 5,n,SendDTMF(6)
 exten => 5,n,Verbose(1, Successfully dial commands)
-exten => 5,n,Hangup()
+exten => 5,n,Echo()




More information about the asterisk-commits mailing list