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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jul 5 11:26:28 CDT 2013


Author: mjordan
Date: Fri Jul  5 11:26:26 2013
New Revision: 3881

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=3881
Log:
Add missing CDR tests

When the great 'CDR test refactoring' occurred, a number of tests got
moved around. Unfortunately the local .svn folder was corrupted and while it
*told* me the files were added, they actually weren't. Fast forward some error
messages and a lot of copying and deleting of folders, and here the tests
actually are.


Added:
    asterisk/trunk/tests/cdr/cdr_manipulation/cdr_fork_end_time/
    asterisk/trunk/tests/cdr/cdr_manipulation/cdr_fork_end_time/configs/
    asterisk/trunk/tests/cdr/cdr_manipulation/cdr_fork_end_time/configs/ast1/
    asterisk/trunk/tests/cdr/cdr_manipulation/cdr_fork_end_time/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/cdr/cdr_manipulation/cdr_fork_end_time/configs/ast1/sip.conf   (with props)
    asterisk/trunk/tests/cdr/cdr_manipulation/cdr_fork_end_time/test-config.yaml   (with props)
    asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/
    asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/configs/
    asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/configs/ast1/
    asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/configs/ast1/branch-1.4/
    asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/configs/ast1/branch-1.4/sip.conf   (with props)
    asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/configs/ast1/sip.conf   (with props)
    asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/test-config.yaml   (with props)
    asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/
    asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/configs/
    asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/configs/ast1/
    asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/configs/ast1/branch-1.4/
    asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/configs/ast1/branch-1.4/sip.conf   (with props)
    asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/configs/ast1/sip.conf   (with props)
    asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/test-config.yaml   (with props)
    asterisk/trunk/tests/cdr/cdr_manipulation/nocdr/
    asterisk/trunk/tests/cdr/cdr_manipulation/nocdr/configs/
    asterisk/trunk/tests/cdr/cdr_manipulation/nocdr/configs/ast1/
    asterisk/trunk/tests/cdr/cdr_manipulation/nocdr/configs/ast1/cdr.conf   (with props)
    asterisk/trunk/tests/cdr/cdr_manipulation/nocdr/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/cdr/cdr_manipulation/nocdr/test-config.yaml   (with props)
    asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/
    asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/configs/
    asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/configs/ast1/
    asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/configs/ast1/sip.conf   (with props)
    asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/run-test   (with props)
    asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/sipp/
    asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/sipp/call-then-blind-transfer.xml   (with props)
    asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/sipp/data.csv   (with props)
    asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/sipp/register.xml   (with props)
    asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/sipp/wait-for-call-do-hangup.xml   (with props)
    asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/sipp/wait-for-call.xml   (with props)
    asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/test-config.yaml   (with props)
    asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/test.lua   (with props)
    asterisk/trunk/tests/cdr/cdr_properties/cdr_accountcode/
    asterisk/trunk/tests/cdr/cdr_properties/cdr_accountcode/configs/
    asterisk/trunk/tests/cdr/cdr_properties/cdr_accountcode/configs/ast1/
    asterisk/trunk/tests/cdr/cdr_properties/cdr_accountcode/configs/ast1/cdr.conf   (with props)
    asterisk/trunk/tests/cdr/cdr_properties/cdr_accountcode/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/cdr/cdr_properties/cdr_accountcode/test-config.yaml   (with props)
    asterisk/trunk/tests/cdr/cdr_properties/cdr_userfield/
    asterisk/trunk/tests/cdr/cdr_properties/cdr_userfield/configs/
    asterisk/trunk/tests/cdr/cdr_properties/cdr_userfield/configs/ast1/
    asterisk/trunk/tests/cdr/cdr_properties/cdr_userfield/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/cdr/cdr_properties/cdr_userfield/test-config.yaml   (with props)

Added: asterisk/trunk/tests/cdr/cdr_manipulation/cdr_fork_end_time/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/cdr/cdr_manipulation/cdr_fork_end_time/configs/ast1/extensions.conf?view=auto&rev=3881
==============================================================================
--- asterisk/trunk/tests/cdr/cdr_manipulation/cdr_fork_end_time/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/cdr/cdr_manipulation/cdr_fork_end_time/configs/ast1/extensions.conf Fri Jul  5 11:26:26 2013
@@ -1,0 +1,14 @@
+[general]
+writeprotect=no
+clearglobalvars=no
+
+[globals]
+
+[default]
+exten => 1,1,NoOp(Dial something that should fail)
+exten => 1,n,Set(CDR(accountcode)=cdrtest_local)
+exten => 1,n,Dial(SIP/test/2)
+exten => 1,n,Playback(silence/3)
+exten => 1,n,ForkCDR(e)
+exten => 1,n,Playback(silence/4)
+exten => 1,n,Hangup

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/cdr_fork_end_time/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/cdr_fork_end_time/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/cdr_fork_end_time/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/cdr/cdr_manipulation/cdr_fork_end_time/configs/ast1/sip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/cdr/cdr_manipulation/cdr_fork_end_time/configs/ast1/sip.conf?view=auto&rev=3881
==============================================================================
--- asterisk/trunk/tests/cdr/cdr_manipulation/cdr_fork_end_time/configs/ast1/sip.conf (added)
+++ asterisk/trunk/tests/cdr/cdr_manipulation/cdr_fork_end_time/configs/ast1/sip.conf Fri Jul  5 11:26:26 2013
@@ -1,0 +1,10 @@
+[general]
+context=default
+udpbindaddr=127.0.0.1
+directmedia=no
+
+[test]
+type=peer
+host=127.0.0.1
+accountcode=cdrtest_sip
+context=test_context

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/cdr_fork_end_time/configs/ast1/sip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/cdr_fork_end_time/configs/ast1/sip.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/cdr_fork_end_time/configs/ast1/sip.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: 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=auto&rev=3881
==============================================================================
--- asterisk/trunk/tests/cdr/cdr_manipulation/cdr_fork_end_time/test-config.yaml (added)
+++ asterisk/trunk/tests/cdr/cdr_manipulation/cdr_fork_end_time/test-config.yaml Fri Jul  5 11:26:26 2013
@@ -1,0 +1,104 @@
+testinfo:
+    summary: Test ForkCDR option for ending the original CDR log before starting new one
+    description: |
+        'This is a normal CDRTestCase test which originates a call to an extension which
+         plays some silence, calls ForkCDR with the e option, and then plays more silence
+         before hanging up. Afterwards, both CDR records are checked to see that they
+         match expected fields and that the duration of both call records is above a
+         minimum threshold (both should have noticeable durations). Then the end time of
+         the first record is checked to see if it came reasonably close to the beginning
+         time of the second (<=1 second to accomodate potential timing differences).'
+
+test-modules:
+    add-to-search-path:
+        -
+            'tests/cdr'
+    test-object:
+        config-section: test-object-config
+        typename: 'SimpleTestCase.SimpleTestCase'
+    modules:
+        -
+            maxversion: '12.0.0'
+            config-section: 'cdr-config-pre-12'
+            typename: 'cdr-tests.ForkCdrModuleEndTime'
+        -
+            minversion: '12.0.0'
+            config-section: 'cdr-config-12'
+            typename: 'cdr-tests.ForkCdrModuleEndTime'
+
+
+test-object-config:
+    config-path: 'tests/cdr/configs/basic'
+    spawn-after-hangup: True
+    ignore-originate-failures: True
+    test-iterations:
+        -
+            channel: 'Local/1 at default'
+            application: 'Echo'
+
+cdr-config-pre-12:
+    -
+        check-entries: [0, 1]
+        file: 'cdrtest_local'
+        lines:
+            -
+                accountcode: 'cdrtest_local'
+                destination: '1'
+                lastapp: 'ForkCDR'
+                dcontext: 'default'
+                channel: 'Local/1 at default-.*'
+                dchannel: 'SIP/test-.*'
+                disposition: 'ANSWERED'
+                amaflags: 'DOCUMENTATION'
+            -
+                accountcode: 'cdrtest_local'
+                destination: '1'
+                lastapp: 'Hangup'
+                dcontext: 'default'
+                dchannel: 'SIP/test-.*'
+                channel: 'Local/1 at default-.*'
+                disposition: 'NO ANSWER'
+                amaflags: 'DOCUMENTATION'
+
+cdr-config-12:
+    -
+        check-entries: [1, 2]
+        file: 'cdrtest_local'
+        lines:
+            -
+                accountcode: 'cdrtest_local'
+                destination: '1'
+                lastapp: 'Dial'
+                dcontext: 'default'
+                channel: 'Local/1 at default-.*'
+                dchannel: 'SIP/test-.*'
+                disposition: 'NO ANSWER'
+            -
+                accountcode: 'cdrtest_local'
+                destination: '1'
+                lastapp: 'ForkCDR'
+                dcontext: 'default'
+                channel: 'Local/1 at default-.*'
+                dchannel: ''
+                disposition: 'ANSWERED'
+                amaflags: 'DOCUMENTATION'
+            -
+                accountcode: 'cdrtest_local'
+                destination: '1'
+                lastapp: 'Hangup'
+                dcontext: 'default'
+                dchannel: ''
+                channel: 'Local/1 at default-.*'
+                disposition: 'ANSWERED'
+                amaflags: 'DOCUMENTATION'
+
+
+properties:
+    minversion: '1.8.13.0'
+    dependencies:
+        - python : 'twisted'
+        - python : 'starpy'
+        - asterisk : 'cdr_csv'
+    tags:
+        - CDR
+        - chan_local

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/cdr_fork_end_time/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/cdr_fork_end_time/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/cdr_fork_end_time/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/configs/ast1/branch-1.4/sip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/configs/ast1/branch-1.4/sip.conf?view=auto&rev=3881
==============================================================================
--- asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/configs/ast1/branch-1.4/sip.conf (added)
+++ asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/configs/ast1/branch-1.4/sip.conf Fri Jul  5 11:26:26 2013
@@ -1,0 +1,11 @@
+[general]
+context=default
+bindaddr=127.0.0.1
+canreinvite=no
+disallow=all
+allow=ulaw
+
+[test]
+type=peer
+host=127.0.0.1
+port=5070

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/configs/ast1/branch-1.4/sip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/configs/ast1/branch-1.4/sip.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/configs/ast1/branch-1.4/sip.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/configs/ast1/extensions.conf?view=auto&rev=3881
==============================================================================
--- asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/configs/ast1/extensions.conf Fri Jul  5 11:26:26 2013
@@ -1,0 +1,23 @@
+[general]
+writeprotect=no
+clearglobalvars=no
+
+[globals]
+
+[default]
+exten => 1,1,NoOp(Dial something that should fail)
+exten => 1,n,Set(CDR(accountcode)=cdrtest_local)
+exten => 1,n,Dial(SIP/test/2)
+exten => 1,n,Goto(${DIALSTATUS})
+exten => 1,n,Hangup
+exten => 1,n(BUSY),ForkCDR
+exten => 1,n,Dial(SIP/test/3)
+exten => 1,n,Hangup
+
+exten => 2,1,NoOp()
+exten => 2,n,Busy()
+exten => 2,n,Hangup()
+
+exten => 3,1,NoOp()
+exten => 3,n,Answer()
+exten => 3,n,Hangup()

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/configs/ast1/sip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/configs/ast1/sip.conf?view=auto&rev=3881
==============================================================================
--- asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/configs/ast1/sip.conf (added)
+++ asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/configs/ast1/sip.conf Fri Jul  5 11:26:26 2013
@@ -1,0 +1,9 @@
+[general]
+context=default
+udpbindaddr=127.0.0.1
+directmedia=no
+
+[test]
+type=peer
+host=127.0.0.1
+accountcode=cdrtest_sip

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/configs/ast1/sip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/configs/ast1/sip.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/configs/ast1/sip.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: 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=auto&rev=3881
==============================================================================
--- asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/test-config.yaml (added)
+++ asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/test-config.yaml Fri Jul  5 11:26:26 2013
@@ -1,0 +1,104 @@
+testinfo:
+    summary: CLI exec console dial busy forward with ForkCDR
+    description: |
+        'An Asterisk instance originates a local channel on an extension. This
+        extension dials another which responds with busy, then we call ForkCDR and
+        dial another number which answers. Afterwards, the CDRs are tested for
+        expected behavior.'
+
+test-modules:
+    add-to-search-path:
+        -
+            'tests/cdr'
+    test-object:
+        config-section: test-object-config
+        typename: 'SimpleTestCase.SimpleTestCase'
+    modules:
+        -
+            maxversion: '12.0.0'
+            config-section: 'cdr-config-pre-12'
+            typename: 'cdr-tests.ForkCdrModuleBasic'
+        -
+            minversion: '12.0.0'
+            config-section: 'cdr-config-12'
+            typename: 'cdr-tests.ForkCdrModuleBasic'
+
+
+test-object-config:
+    config-path: 'tests/cdr/configs/basic'
+    spawn-after-hangup: True
+    ignore-originate-failures: True
+    test-iterations:
+        -
+            channel: 'Local/1 at default'
+            application: 'Echo'
+
+cdr-config-12:
+    -
+        file: 'cdrtest_local'
+        lines:
+            -
+                accountcode: 'cdrtest_local'
+                destination: '1'
+                lastapp: 'Dial'
+                lastarg: 'SIP/test/2'
+                dcontext: 'default'
+                channel: 'Local/1 at default-.*'
+                dchannel: 'SIP/test-.*'
+                disposition: 'BUSY'
+                amaflags: 'DOCUMENTATION'
+            -
+                accountcode: 'cdrtest_local'
+                destination: '1'
+                lastapp: 'Dial'
+                lastarg: 'SIP/test/3'
+                dcontext: 'default'
+                channel: 'Local/1 at default-.*'
+                dchannel: 'SIP/test-.*'
+                disposition: 'ANSWERED'
+                amaflags: 'DOCUMENTATION'
+            -
+                accountcode: 'cdrtest_local'
+                destination: '1'
+                lastapp: 'Dial'
+                lastarg: 'SIP/test/3'
+                dcontext: 'default'
+                dchannel: 'SIP/test-.*'
+                channel: 'Local/1 at default-.*'
+                disposition: 'ANSWERED'
+                amaflags: 'DOCUMENTATION'
+
+cdr-config-pre-12:
+    -
+        file: 'cdrtest_local'
+        lines:
+            -
+                accountcode: 'cdrtest_local'
+                destination: '1'
+                lastapp: 'Dial'
+                lastarg: 'SIP/test/3'
+                dcontext: 'default'
+                channel: 'Local/1 at default-.*'
+                dchannel: 'SIP/test-.*'
+                disposition: 'ANSWERED'
+                amaflags: 'DOCUMENTATION'
+            -
+                accountcode: 'cdrtest_local'
+                destination: '1'
+                lastapp: 'Dial'
+                lastarg: 'SIP/test/3'
+                dcontext: 'default'
+                dchannel: 'SIP/test-.*'
+                channel: 'Local/1 at default-.*'
+                disposition: 'ANSWERED'
+                amaflags: 'DOCUMENTATION'
+
+properties:
+    minversion: '1.8.0.0'
+    dependencies:
+        - python : 'twisted'
+        - python : 'starpy'
+        - asterisk : 'cdr_csv'
+    tags:
+        - CDR
+        - chan_local

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_after_busy_forward/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/configs/ast1/branch-1.4/sip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/configs/ast1/branch-1.4/sip.conf?view=auto&rev=3881
==============================================================================
--- asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/configs/ast1/branch-1.4/sip.conf (added)
+++ asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/configs/ast1/branch-1.4/sip.conf Fri Jul  5 11:26:26 2013
@@ -1,0 +1,10 @@
+[general]
+context=default
+bindaddr=127.0.0.1
+canreinvite=no
+
+[test]
+type=peer
+host=127.0.0.1
+accountcode=cdrtest_sip
+

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/configs/ast1/branch-1.4/sip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/configs/ast1/branch-1.4/sip.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/configs/ast1/branch-1.4/sip.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/configs/ast1/extensions.conf?view=auto&rev=3881
==============================================================================
--- asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/configs/ast1/extensions.conf Fri Jul  5 11:26:26 2013
@@ -1,0 +1,16 @@
+[general]
+writeprotect=no
+clearglobalvars=no
+
+[globals]
+
+[default]
+exten => 1,1,NoOp(Wait a bit so that we can see different times)
+exten => 1,n,Set(CDR(accountcode)=cdrtest_local)
+exten => 1,n,Playback(silence/3)
+exten => 1,n,ForkCDR
+exten => 1,n,Dial(SIP/test/2)
+
+exten => 2,1,NoOp()
+exten => 2,n,Answer()
+exten => 2,n,Hangup()

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/configs/ast1/sip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/configs/ast1/sip.conf?view=auto&rev=3881
==============================================================================
--- asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/configs/ast1/sip.conf (added)
+++ asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/configs/ast1/sip.conf Fri Jul  5 11:26:26 2013
@@ -1,0 +1,10 @@
+[general]
+context=default
+udpbindaddr=127.0.0.1
+directmedia=no
+
+[test]
+type=peer
+host=127.0.0.1
+accountcode=cdrtest_sip
+

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/configs/ast1/sip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/configs/ast1/sip.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/configs/ast1/sip.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: 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=auto&rev=3881
==============================================================================
--- asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/test-config.yaml (added)
+++ asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/test-config.yaml Fri Jul  5 11:26:26 2013
@@ -1,0 +1,66 @@
+testinfo:
+    summary: CLI exec console dial which calls ForkCDR before dialing via SIP which answers
+    description: |
+        'An Asterisk instance originates a Local channel which will play silence for about
+        3 seconds before using ForkCDR and then dial itself via SIP. The receiving channel
+        answers and then immediately hangs up. CDRs are tested for expected behavior.'
+
+test-modules:
+    add-to-search-path:
+        -
+            'tests/cdr'
+    test-object:
+        config-section: test-object-config
+        typename: 'SimpleTestCase.SimpleTestCase'
+    modules:
+        -
+            config-section: 'cdr-config'
+            typename: 'cdr-tests.ForkCdrModuleBasic'
+
+test-object-config:
+    config-path: 'tests/cdr/configs/basic'
+    spawn-after-hangup: True
+    test-iterations:
+        -
+            channel: 'Local/1 at default'
+            application: 'Echo'
+
+cdr-config:
+    -
+        file: 'cdrtest_local'
+        lines:
+            -
+                accountcode: 'cdrtest_local'
+                destination: '1'
+                dcontext: 'default'
+                channel: 'Local/1 at default-.*'
+                disposition: 'ANSWERED'
+                amaflags: 'DOCUMENTATION'
+            -
+                accountcode: 'cdrtest_local'
+                destination: '1'
+                dcontext: 'default'
+                channel: 'Local/1 at default-.*'
+                disposition: 'ANSWERED'
+                amaflags: 'DOCUMENTATION'
+    -
+        file: 'cdrtest_sip'
+        lines:
+            -
+                accountcode: 'cdrtest_sip'
+                destination: '2'
+                dcontext: 'default'
+                channel: 'SIP/test-.*'
+                disposition: 'ANSWERED'
+                amaflags: 'DOCUMENTATION'
+
+properties:
+    minversion: '1.8.0.0'
+    dependencies:
+        - python : 'twisted'
+        - python : 'starpy'
+        - asterisk : 'cdr_csv'
+    tags:
+        - dial
+        - CDR
+        - chan_local

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/console_fork_before_dial/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/cdr/cdr_manipulation/nocdr/configs/ast1/cdr.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/cdr/cdr_manipulation/nocdr/configs/ast1/cdr.conf?view=auto&rev=3881
==============================================================================
--- asterisk/trunk/tests/cdr/cdr_manipulation/nocdr/configs/ast1/cdr.conf (added)
+++ asterisk/trunk/tests/cdr/cdr_manipulation/nocdr/configs/ast1/cdr.conf Fri Jul  5 11:26:26 2013
@@ -1,0 +1,8 @@
+[general]
+unanswered=yes
+
+[csv]
+usegmtime=yes    ; log date/time in GMT.  Default is "no"
+loguniqueid=yes  ; log uniqueid.  Default is "no"
+loguserfield=yes ; log user field.  Default is "no"
+

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/nocdr/configs/ast1/cdr.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/nocdr/configs/ast1/cdr.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/nocdr/configs/ast1/cdr.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/cdr/cdr_manipulation/nocdr/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/cdr/cdr_manipulation/nocdr/configs/ast1/extensions.conf?view=auto&rev=3881
==============================================================================
--- asterisk/trunk/tests/cdr/cdr_manipulation/nocdr/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/cdr/cdr_manipulation/nocdr/configs/ast1/extensions.conf Fri Jul  5 11:26:26 2013
@@ -1,0 +1,10 @@
+[general]
+writeprotect=no
+clearglobalvars=no
+
+[globals]
+
+[default]
+exten => 1,1,Answer()
+exten => 1,n,NoCDR()
+exten => 1,n,Hangup()

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/nocdr/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/nocdr/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/nocdr/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/cdr/cdr_manipulation/nocdr/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/cdr/cdr_manipulation/nocdr/test-config.yaml?view=auto&rev=3881
==============================================================================
--- asterisk/trunk/tests/cdr/cdr_manipulation/nocdr/test-config.yaml (added)
+++ asterisk/trunk/tests/cdr/cdr_manipulation/nocdr/test-config.yaml Fri Jul  5 11:26:26 2013
@@ -1,0 +1,43 @@
+testinfo:
+    summary: 'Test the NoCDR application'
+    description: |
+        'Answer a call and run NoCDR and ensure no CDR is produced'
+
+test-modules:
+    test-object:
+        config-section: test-object-config
+        typename: 'SimpleTestCase.SimpleTestCase'
+    modules:
+        -
+            config-section: 'cdr-config'
+            typename: 'cdr.CDRModule'
+
+test-object-config:
+    config-path: 'tests/cdr/configs/basic'
+    spawn-after-hangup: True
+    test-iterations:
+        -
+            channel: 'Local/1 at default'
+            application: 'Echo'
+
+cdr-config:
+    -
+        file: 'Master'
+        lines:
+            -
+                destination: '1'
+                dcontext: 'default'
+                channel: 'Local/1 at default-.*'
+                disposition: 'ANSWERED'
+                amaflags: 'DOCUMENTATION'
+
+
+properties:
+    minversion: '1.8.0.0'
+    dependencies:
+        - python : 'twisted'
+        - python : 'starpy'
+        - asterisk : 'cdr_csv'
+    tags:
+        - CDR
+        - chan_local

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/nocdr/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/nocdr/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/cdr/cdr_manipulation/nocdr/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/configs/ast1/extensions.conf?view=auto&rev=3881
==============================================================================
--- asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/configs/ast1/extensions.conf Fri Jul  5 11:26:26 2013
@@ -1,0 +1,12 @@
+[general]
+
+[default]
+exten = test1,1,Noop
+exten = test1,n,Dial(SIP/test1)
+
+exten = test2,1,Noop
+exten = test2,n,Dial(SIP/test2)
+
+exten = test3,1,Noop
+exten = test3,n,Dial(SIP/test3)
+

Propchange: asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/configs/ast1/sip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/configs/ast1/sip.conf?view=auto&rev=3881
==============================================================================
--- asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/configs/ast1/sip.conf (added)
+++ asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/configs/ast1/sip.conf Fri Jul  5 11:26:26 2013
@@ -1,0 +1,21 @@
+[general]
+udpbindaddr = 127.0.0.1
+bindaddr = 127.0.0.1
+canreinvite = no
+pedantic = no
+
+[test1]
+type = friend
+host = dynamic
+accountcode = account1
+
+[test2]
+type = friend
+host = dynamic
+;accountcode = account2
+
+[test3]
+type = friend
+host = dynamic
+accountcode = account3
+

Propchange: asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/configs/ast1/sip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/configs/ast1/sip.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/configs/ast1/sip.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/run-test?view=auto&rev=3881
==============================================================================
--- asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/run-test (added)
+++ asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/run-test Fri Jul  5 11:26:26 2013
@@ -1,0 +1,4 @@
+#!/usr/bin/env bash
+set -e
+. lib/sh/lua.sh
+asttest -a / -s `dirname $0` $@

Propchange: asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/run-test
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/run-test
------------------------------------------------------------------------------
    svn:executable = *

Propchange: asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/run-test
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/run-test
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/sipp/call-then-blind-transfer.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/sipp/call-then-blind-transfer.xml?view=auto&rev=3881
==============================================================================
--- asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/sipp/call-then-blind-transfer.xml (added)
+++ asterisk/trunk/tests/cdr/cdr_properties/blind-transfer-accountcode/sipp/call-then-blind-transfer.xml Fri Jul  5 11:26:26 2013
@@ -1,0 +1,114 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+
+<scenario name="Send Call then Blind Transfer">
+    <Global variables="file,user" />
+    <nop>
+        <action>
+            <lookup assign_to="line" file="[$file]" key="[$user]" />
+        </action>
+    </nop>
+    <Reference variables="file,user" />
+
+    <send retrans="500">
+        <![CDATA[
+
+        INVITE sip:[field2 line="[$line]"]@[remote_ip]:[remote_port] SIP/2.0
+        Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+        From: [field0 line="[$line]"] <sip:[field0 line="[$line]"]@[local_ip]:[local_port]>;tag=[call_number]
+        To: [field2 line="[$line]"] <sip:[field2 line="[$line]"]@[remote_ip]:[remote_port]>
+        Call-ID: [call_id]
+        CSeq: 1 INVITE

[... 850 lines stripped ...]



More information about the asterisk-commits mailing list