[asterisk-commits] mjordan: testsuite/asterisk/trunk r4072 - in /asterisk/trunk/tests/cdr: cdr_m...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Aug 25 16:48:59 CDT 2013


Author: mjordan
Date: Sun Aug 25 16:48:57 2013
New Revision: 4072

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=4072
Log:
Turn CDR test originations into asynchronous originations

A synchronous origination will block all Stasis messages regarding that channel
until the call has finished. This has serious repercussions for the CDR tests -
when the channel (finally) hangs up, the dam of Stasis messages is released,
and both AMI and CDR recipients finally get the blocked up messages.
Unfortunately, AMI will often throw the Hangup event out while the CDR engine
is still frantically trying to catch up, resulting in Asterisk being shut
down just as it is attempting to finalize out the last CDR.

This wouldn't be a problem, as the engine will still attempt to spit out the
last message, but the CDR backends themselves will usually unload before that
happens. Sadness.

This patch configures the tests to Originate their calls asynchronously. In
addition to being the "right" thing to do, it also means that when a channel
hangs up, the CDR engine just has to process a single message, as opposed to
100.

Modified:
    asterisk/trunk/tests/cdr/cdr_manipulation/cdr_fork_end_time/test-config.yaml
    asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/test-config.yaml
    asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/test-config.yaml
    asterisk/trunk/tests/cdr/console_dial_sip_busy/test-config.yaml
    asterisk/trunk/tests/cdr/console_dial_sip_congestion/test-config.yaml
    asterisk/trunk/tests/cdr/console_dial_sip_transfer/test-config.yaml

Modified: asterisk/trunk/tests/cdr/cdr_manipulation/cdr_fork_end_time/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/cdr/cdr_manipulation/cdr_fork_end_time/test-config.yaml?view=diff&rev=4072&r1=4071&r2=4072
==============================================================================
--- asterisk/trunk/tests/cdr/cdr_manipulation/cdr_fork_end_time/test-config.yaml (original)
+++ asterisk/trunk/tests/cdr/cdr_manipulation/cdr_fork_end_time/test-config.yaml Sun Aug 25 16:48:57 2013
@@ -35,6 +35,7 @@
         -
             channel: 'Local/1 at default'
             application: 'Echo'
+            async: True
 
 cdr-config-pre-12:
     -

Modified: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/test-config.yaml?view=diff&rev=4072&r1=4071&r2=4072
==============================================================================
--- asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/test-config.yaml (original)
+++ asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/test-config.yaml Sun Aug 25 16:48:57 2013
@@ -32,6 +32,7 @@
         -
             channel: 'Local/1 at default'
             application: 'Echo'
+            async: True
 
 cdr-config-12:
     -

Modified: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/test-config.yaml?view=diff&rev=4072&r1=4071&r2=4072
==============================================================================
--- asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/test-config.yaml (original)
+++ asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/test-config.yaml Sun Aug 25 16:48:57 2013
@@ -24,6 +24,7 @@
         -
             channel: 'Local/1 at default'
             application: 'Echo'
+            async: True
 
 cdr-config:
     -

Modified: asterisk/trunk/tests/cdr/console_dial_sip_busy/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/cdr/console_dial_sip_busy/test-config.yaml?view=diff&rev=4072&r1=4071&r2=4072
==============================================================================
--- asterisk/trunk/tests/cdr/console_dial_sip_busy/test-config.yaml (original)
+++ asterisk/trunk/tests/cdr/console_dial_sip_busy/test-config.yaml Sun Aug 25 16:48:57 2013
@@ -21,6 +21,7 @@
         -
             channel: 'Local/1 at default'
             application: 'Echo'
+            async: True
 
 cdr-config:
     -

Modified: asterisk/trunk/tests/cdr/console_dial_sip_congestion/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/cdr/console_dial_sip_congestion/test-config.yaml?view=diff&rev=4072&r1=4071&r2=4072
==============================================================================
--- asterisk/trunk/tests/cdr/console_dial_sip_congestion/test-config.yaml (original)
+++ asterisk/trunk/tests/cdr/console_dial_sip_congestion/test-config.yaml Sun Aug 25 16:48:57 2013
@@ -21,6 +21,7 @@
         -
             channel: 'Local/1 at default'
             application: 'Echo'
+            async: True
 
 cdr-config:
     -

Modified: asterisk/trunk/tests/cdr/console_dial_sip_transfer/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/cdr/console_dial_sip_transfer/test-config.yaml?view=diff&rev=4072&r1=4071&r2=4072
==============================================================================
--- asterisk/trunk/tests/cdr/console_dial_sip_transfer/test-config.yaml (original)
+++ asterisk/trunk/tests/cdr/console_dial_sip_transfer/test-config.yaml Sun Aug 25 16:48:57 2013
@@ -27,6 +27,7 @@
         -
             channel: 'Local/1 at default'
             application: 'Echo'
+            async: True
 
 cdr-config-12:
     -




More information about the asterisk-commits mailing list