[asterisk-commits] kmoore: testsuite/asterisk/trunk r3227 - /asterisk/trunk/tests/channels/SIP/s...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri May 18 12:00:40 CDT 2012


Author: kmoore
Date: Fri May 18 12:00:34 2012
New Revision: 3227

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=3227
Log:
Fix the sip_cause test

It appears that the dialplan post-Dial is executing faster than the
SIP_CAUSE hash can be set via the MASTER_CHANNEL() dialplan function.
This is causing the user event with cause information to be reported
before the final value is set into SIP_CAUSE. The Wait(2) (gross, I
know) should work around this problem.

Modified:
    asterisk/trunk/tests/channels/SIP/sip_cause/configs/ast2/extensions.conf

Modified: asterisk/trunk/tests/channels/SIP/sip_cause/configs/ast2/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/sip_cause/configs/ast2/extensions.conf?view=diff&rev=3227&r1=3226&r2=3227
==============================================================================
--- asterisk/trunk/tests/channels/SIP/sip_cause/configs/ast2/extensions.conf (original)
+++ asterisk/trunk/tests/channels/SIP/sip_cause/configs/ast2/extensions.conf Fri May 18 12:00:34 2012
@@ -8,8 +8,9 @@
 exten => 3333,1,Set(TEST=local)
 exten => 3333,2,Dial(local/3333 at isolated)
 
-exten => h,1,Set(ARRAY(C1,C2)=${HASHKEYS(SIP_CAUSE)})
-exten => h,2,UserEvent(SCStatus,status: ${TEST},chan1: ${C1},chan2: ${C2},res1: ${HASH(SIP_CAUSE,${C1})},res2: ${HASH(SIP_CAUSE,${C2})},hangupcause: ${HANGUPCAUSE})
+exten => h,1,Wait(2)
+exten => h,n,Set(ARRAY(C1,C2)=${HASHKEYS(SIP_CAUSE)})
+exten => h,n,UserEvent(SCStatus,status: ${TEST},chan1: ${C1},chan2: ${C2},res1: ${HASH(SIP_CAUSE,${C1})},res2: ${HASH(SIP_CAUSE,${C2})},hangupcause: ${HANGUPCAUSE})
 
 [isolated]
 exten => 3333,1,Dial(sip/bob&sip/alice)




More information about the asterisk-commits mailing list