[asterisk-commits] mjordan: testsuite/asterisk/trunk r3501 - in /asterisk/trunk: configs/ lib/py...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Oct 30 16:19:17 CDT 2012


Author: mjordan
Date: Tue Oct 30 16:19:09 2012
New Revision: 3501

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=3501
Log:
Add CDR/CEL Queue tests for No Answer scenarios

These tests cover CDR/CEL behaviour defined for Queues in Asterisk 12 (see 
r375416).  In that code change, when a single Queue member was paused, if
the caller failed to be answered by another Queue member the overall
disposition was BUSY.  That patch changed the behaviour to be NO ANSWER.
These tests cover the CDR/CEL behaviour in the following three scenarios:
 * When no one answers, and no member is 'busy'
 * When no one answers, and a single member is 'busy' but at least one other
   member could have picked up the phone (lazy gits)
 * When no one answers, and all members were legitimately 'busy' (your call
   is important to us, but so is our lunch break kkthnx)

Hopefully, if someone goes in and mucks with CDRs in the future, we'll at
least get a big red flag that someone changed the behavious on us... again.

Review: https://reviewboard.asterisk.org/r/2063/

(issue AST-906)
Reported by: Thomas Arimont


Added:
    asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/
    asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/
    asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/
    asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/cdr.conf   (with props)
    asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/cel.conf   (with props)
    asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/queues.conf   (with props)
    asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/test-config.yaml   (with props)
    asterisk/trunk/tests/apps/queues/queue_no_answer/
    asterisk/trunk/tests/apps/queues/queue_no_answer/configs/
    asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/
    asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/cdr.conf   (with props)
    asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/cel.conf   (with props)
    asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/queues.conf   (with props)
    asterisk/trunk/tests/apps/queues/queue_no_answer/test-config.yaml   (with props)
    asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/
    asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/
    asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/
    asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/cdr.conf   (with props)
    asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/cel.conf   (with props)
    asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/queues.conf   (with props)
    asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/test-config.yaml   (with props)
Modified:
    asterisk/trunk/configs/cel.conf
    asterisk/trunk/lib/python/asterisk/cdr.py
    asterisk/trunk/lib/python/asterisk/cel.py
    asterisk/trunk/tests/apps/queues/tests.yaml

Modified: asterisk/trunk/configs/cel.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/configs/cel.conf?view=diff&rev=3501&r1=3500&r2=3501
==============================================================================
--- asterisk/trunk/configs/cel.conf (original)
+++ asterisk/trunk/configs/cel.conf Tue Oct 30 16:19:09 2012
@@ -1,4 +1,4 @@
 [general]
 enable=yes
-apps=dial,park
+apps=dial,park,queue
 events=ALL

Modified: asterisk/trunk/lib/python/asterisk/cdr.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/lib/python/asterisk/cdr.py?view=diff&rev=3501&r1=3500&r2=3501
==============================================================================
--- asterisk/trunk/lib/python/asterisk/cdr.py (original)
+++ asterisk/trunk/lib/python/asterisk/cdr.py Tue Oct 30 16:19:09 2012
@@ -45,7 +45,8 @@
                 # Set the record to the default fields, then update with what
                 # was passed in to us
                 dict_record = dict((k, None) for k in AsteriskCSVCDRLine.fields)
-                dict_record.update(csv_line)
+                if csv_line is not None:
+                    dict_record.update(csv_line)
 
                 self.cdr_records[file_name].append(AsteriskCSVCDRLine(**dict_record))
 

Modified: asterisk/trunk/lib/python/asterisk/cel.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/lib/python/asterisk/cel.py?view=diff&rev=3501&r1=3500&r2=3501
==============================================================================
--- asterisk/trunk/lib/python/asterisk/cel.py (original)
+++ asterisk/trunk/lib/python/asterisk/cel.py Tue Oct 30 16:19:09 2012
@@ -43,7 +43,8 @@
                 # Set the record to the default fields, then update with what
                 # was passed in to us
                 dict_record = dict((k, None) for k in AsteriskCSVCELLine.fields)
-                dict_record.update(csv_line)
+                if csv_line is not None:
+                    dict_record.update(csv_line)
 
                 self.cel_records[file_name].append(AsteriskCSVCELLine(**dict_record))
 

Added: asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/cdr.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/cdr.conf?view=auto&rev=3501
==============================================================================
--- asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/cdr.conf (added)
+++ asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/cdr.conf Tue Oct 30 16:19:09 2012
@@ -1,0 +1,8 @@
+[general]
+enable = yes
+unanswered = yes
+
+[csv]
+usegmtime = yes
+loguniqueid = yes
+loguserfield = yes

Propchange: asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/cdr.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/cdr.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/cdr.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/cel.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/cel.conf?view=auto&rev=3501
==============================================================================
--- asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/cel.conf (added)
+++ asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/cel.conf Tue Oct 30 16:19:09 2012
@@ -1,0 +1,4 @@
+[general]
+enable=yes
+apps=queue
+events=CHAN_START,APP_START,CHAN_END,APP_END

Propchange: asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/cel.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/cel.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/cel.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/extensions.conf?view=auto&rev=3501
==============================================================================
--- asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/extensions.conf Tue Oct 30 16:19:09 2012
@@ -1,0 +1,18 @@
+[globals]
+
+[default]
+
+exten => pause_queue_member,1,NoOp()
+	same => n,PauseQueueMember(test_queue,Local/queue_member_one at default)
+	same => n,PauseQueueMember(test_queue,Local/queue_member_two at default)
+
+exten => caller,1,NoOp()
+	same => n,Queue(test_queue,,,,3)
+
+exten => queue_member_one,1,NoOp()
+	same => n,Echo()
+	same => n,Hangup()
+
+exten => queue_member_two,1,NoOp()
+	same => n,Echo()
+	same => n,Hangup()

Propchange: asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/queues.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/queues.conf?view=auto&rev=3501
==============================================================================
--- asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/queues.conf (added)
+++ asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/queues.conf Tue Oct 30 16:19:09 2012
@@ -1,0 +1,9 @@
+[general]
+
+[test_queue]
+strategy = ringall
+timeout = 2
+retry = 1
+timeoutpriority = app|conf
+member => Local/queue_member_one at default
+member => Local/queue_member_two at default

Propchange: asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/queues.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/queues.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/configs/ast1/queues.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/test-config.yaml?view=auto&rev=3501
==============================================================================
--- asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/test-config.yaml (added)
+++ asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/test-config.yaml Tue Oct 30 16:19:09 2012
@@ -1,0 +1,135 @@
+testinfo:
+    summary: Test behavior of app_queue when a caller enters a Queue and all
+        agents are paused
+    description: |
+        'This test verifies that when a caller enters a queue where all agents
+        are paused, none of the agents are rung and that the caller eventually
+        times out.  This test verifies the CDR and CEL entries created in
+        such a scenario.'
+
+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.CDRModule'
+        -
+            config-section: 'cel-config'
+            typename: 'cel.CELModule'
+
+test-object-config:
+    spawn-after-hangup: True
+    ignore-originate-failures: True
+    test-iterations:
+        -
+            channel: 'Local/pause_queue_member at default'
+            application: 'Echo'
+        -
+            channel: 'Local/caller at default'
+            application: 'Echo'
+
+cdr-config:
+    -
+        file: 'Master'
+        lines:
+            -
+                destination: 'pause_queue_member'
+                dcontext: 'default'
+                channel: 'Local/pause_queue_member at default-.*'
+                lastapp: 'Dial'
+                disposition: 'FAILED'
+            -
+                destination: 'pause_queue_member'
+                dcontext: 'default'
+                channel: 'Local/pause_queue_member at default-.*'
+                lastapp: 'PauseQueueMember'
+                disposition: 'NO ANSWER'
+            -
+                destination: 'caller'
+                dcontext: 'default'
+                channel: 'Local/caller at default-.*'
+                lastapp: 'Queue'
+                disposition: 'NO ANSWER'
+            -
+                destination: 'caller'
+                dcontext: 'default'
+                channel: 'Local/caller at default-.*'
+                lastapp: 'Dial'
+                disposition: 'FAILED'
+
+cel-config:
+    -
+        file: 'Master'
+        lines:
+            -
+                eventtype: 'CHAN_START'
+                exten: 'pause_queue_member'
+                context: 'default'
+                channel: 'Local/pause_queue_member at default-.*'
+            -
+                eventtype: 'CHAN_START'
+                exten: 'pause_queue_member'
+                context: 'default'
+                channel: 'Local/pause_queue_member at default-.*'
+            -
+                eventtype: 'CHAN_END'
+                exten: 'pause_queue_member'
+                context: 'default'
+                channel: 'Local/pause_queue_member at default-.*'
+            -
+                eventtype: 'CHAN_START'
+                exten: 'caller'
+                context: 'default'
+                channel: 'Local/caller at default-.*'
+            -
+                eventtype: 'CHAN_START'
+                exten: 'caller'
+                context: 'default'
+                channel: 'Local/caller at default-.*'
+            -
+                eventtype: 'APP_START'
+                exten: 'caller'
+                context: 'default'
+                channel: 'Local/caller at default-.*'
+                app: 'Queue'
+            -
+                eventtype: 'CHAN_END'
+                exten: 'pause_queue_member'
+                context: 'default'
+                channel: 'Local/pause_queue_member at default-.*'
+            -
+                eventtype: 'APP_END'
+                exten: 'caller'
+                context: 'default'
+                channel: 'Local/caller at default-.*'
+                app: 'Queue'
+            -
+                eventtype: 'CHAN_END'
+                exten: 'caller'
+                context: 'default'
+                channel: 'Local/caller at default-.*'
+            -
+                eventtype: 'CHAN_END'
+                exten: 'caller'
+                context: 'default'
+                channel: 'Local/caller at default-.*'
+
+
+properties:
+    minversion: '12.0.0'
+    dependencies:
+        - python : 'twisted'
+        - python : 'starpy'
+        - asterisk : 'cdr_csv'
+        - asterisk : 'cel_custom'
+        - asterisk : 'app_queue'
+    tags:
+        - queues
+        - CDR
+        - CEL
+        - chan_local

Propchange: asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/apps/queues/queue_all_paused_no_answer/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/cdr.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/cdr.conf?view=auto&rev=3501
==============================================================================
--- asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/cdr.conf (added)
+++ asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/cdr.conf Tue Oct 30 16:19:09 2012
@@ -1,0 +1,8 @@
+[general]
+enable = yes
+unanswered = yes
+
+[csv]
+usegmtime = yes
+loguniqueid = yes
+loguserfield = yes

Propchange: asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/cdr.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/cdr.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/cdr.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/cel.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/cel.conf?view=auto&rev=3501
==============================================================================
--- asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/cel.conf (added)
+++ asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/cel.conf Tue Oct 30 16:19:09 2012
@@ -1,0 +1,4 @@
+[general]
+enable=yes
+apps=queue
+events=CHAN_START,APP_START,CHAN_END,APP_END

Propchange: asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/cel.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/cel.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/cel.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/extensions.conf?view=auto&rev=3501
==============================================================================
--- asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/extensions.conf Tue Oct 30 16:19:09 2012
@@ -1,0 +1,14 @@
+[globals]
+
+[default]
+
+exten => caller,1,NoOp()
+	same => n,Queue(test_queue,,,,3)
+
+exten => queue_member_one,1,NoOp()
+	same => n,Echo()
+	same => n,Hangup()
+
+exten => queue_member_two,1,NoOp()
+	same => n,Echo()
+	same => n,Hangup()

Propchange: asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/queues.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/queues.conf?view=auto&rev=3501
==============================================================================
--- asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/queues.conf (added)
+++ asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/queues.conf Tue Oct 30 16:19:09 2012
@@ -1,0 +1,9 @@
+[general]
+
+[test_queue]
+strategy = ringall
+timeout = 2
+retry = 1
+timeoutpriority = app|conf
+member => Local/queue_member_one at default
+member => Local/queue_member_two at default

Propchange: asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/queues.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/queues.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/apps/queues/queue_no_answer/configs/ast1/queues.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/apps/queues/queue_no_answer/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/queues/queue_no_answer/test-config.yaml?view=auto&rev=3501
==============================================================================
--- asterisk/trunk/tests/apps/queues/queue_no_answer/test-config.yaml (added)
+++ asterisk/trunk/tests/apps/queues/queue_no_answer/test-config.yaml Tue Oct 30 16:19:09 2012
@@ -1,0 +1,155 @@
+testinfo:
+    summary: Test behavior of app_queue when a caller enters a Queue and all
+        agents ignore the presence of the caller
+    description: |
+        'This test verifies that when a caller enters a queue where all agents
+        fail to answer the call, that eventually the caller times out and
+        leaves the queue.  This test verifies both the CDR and CEL entries
+        created in such a scenario.'
+
+test-modules:
+    test-object:
+        config-section: test-object-config
+        typename: 'SimpleTestCase.SimpleTestCase'
+    modules:
+        -
+            config-section: 'cdr-config'
+            typename: 'cdr.CDRModule'
+        -
+            config-section: 'cel-config'
+            typename: 'cel.CELModule'
+
+test-object-config:
+    spawn-after-hangup: True
+    ignore-originate-failures: True
+    test-iterations:
+        -
+            channel: 'Local/caller at default'
+            application: 'Echo'
+
+cdr-config:
+    -
+        file: 'Master'
+        lines:
+            -
+                destination: 'queue_member_.*'
+                dcontext: 'default'
+                channel: 'Local/queue_member_.*'
+                lastapp: 'Echo'
+                disposition: 'NO ANSWER'
+            -
+                destination: 'queue_member_.*'
+                dcontext: 'default'
+                channel: 'Local/queue_member_.*'
+                lastapp: 'Echo'
+                disposition: 'NO ANSWER'
+            -
+                destination: 'caller'
+                dcontext: 'default'
+                channel: 'Local/caller at default-.*'
+                lastapp: 'Queue'
+                disposition: 'NO ANSWER'
+            -
+                destination: 'caller'
+                dcontext: 'default'
+                channel: 'Local/caller at default-.*'
+                lastapp: 'Dial'
+                disposition: 'FAILED'
+
+cel-config:
+    -
+        file: 'Master'
+        lines:
+            -
+                eventtype: 'CHAN_START'
+                exten: 'caller'
+                context: 'default'
+                channel: 'Local/caller at default-.*'
+            -
+                eventtype: 'CHAN_START'
+                exten: 'caller'
+                context: 'default'
+                channel: 'Local/caller at default-.*'
+            -
+                eventtype: 'APP_START'
+                exten: 'caller'
+                context: 'default'
+                channel: 'Local/caller at default-.*'
+                app: 'Queue'
+            -
+                eventtype: 'CHAN_START'
+                exten: 'queue_member_.*'
+                context: 'default'
+                channel: 'Local/queue_member_.*'
+            -
+                eventtype: 'CHAN_START'
+                exten: 'queue_member_.*'
+                context: 'default'
+                channel: 'Local/queue_member_.*'
+            -
+                eventtype: 'CHAN_START'
+                exten: 'queue_member_.*'
+                context: 'default'
+                channel: 'Local/queue_member_.*'
+            -
+                eventtype: 'CHAN_START'
+                exten: 'queue_member_.*'
+                context: 'default'
+                channel: 'Local/queue_member_.*'
+            -
+                eventtype: 'CHAN_END'
+                exten: 'caller'
+                context: 'default'
+                cidnum: 'caller'
+                channel: 'Local/queue_member_.*'
+                app: 'AppQueue'
+                appdata: '\(Outgoing Line\)'
+            -
+                eventtype: 'CHAN_END'
+                exten: 'caller'
+                context: 'default'
+                cidnum: 'caller'
+                channel: 'Local/queue_member_.*'
+                app: 'AppQueue'
+                appdata: '\(Outgoing Line\)'
+            -
+                eventtype: 'CHAN_END'
+                exten: 'queue_member_.*'
+                context: 'default'
+                channel: 'Local/queue_member_.*'
+            -
+                eventtype: 'CHAN_END'
+                exten: 'queue_member_.*'
+                context: 'default'
+                channel: 'Local/queue_member_.*'
+            -
+                eventtype: 'APP_END'
+                exten: 'caller'
+                context: 'default'
+                channel: 'Local/caller at default-.*'
+                app: 'Queue'
+            -
+                eventtype: 'CHAN_END'
+                exten: 'caller'
+                context: 'default'
+                channel: 'Local/caller at default-.*'
+            -
+                eventtype: 'CHAN_END'
+                exten: 'caller'
+                context: 'default'
+                channel: 'Local/caller at default-.*'
+
+
+properties:
+    minversion: '12.0.0'
+    dependencies:
+        - python : 'twisted'
+        - python : 'starpy'
+        - asterisk : 'cdr_csv'
+        - asterisk : 'cel_custom'
+        - asterisk : 'app_queue'
+    tags:
+        - queues
+        - CDR
+        - CEL
+        - chan_local

Propchange: asterisk/trunk/tests/apps/queues/queue_no_answer/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/apps/queues/queue_no_answer/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/apps/queues/queue_no_answer/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/cdr.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/cdr.conf?view=auto&rev=3501
==============================================================================
--- asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/cdr.conf (added)
+++ asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/cdr.conf Tue Oct 30 16:19:09 2012
@@ -1,0 +1,8 @@
+[general]
+enable = yes
+unanswered = yes
+
+[csv]
+usegmtime = yes
+loguniqueid = yes
+loguserfield = yes

Propchange: asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/cdr.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/cdr.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/cdr.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/cel.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/cel.conf?view=auto&rev=3501
==============================================================================
--- asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/cel.conf (added)
+++ asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/cel.conf Tue Oct 30 16:19:09 2012
@@ -1,0 +1,4 @@
+[general]
+enable=yes
+apps=queue
+events=CHAN_START,APP_START,CHAN_END,APP_END

Propchange: asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/cel.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/cel.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/cel.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/extensions.conf?view=auto&rev=3501
==============================================================================
--- asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/extensions.conf Tue Oct 30 16:19:09 2012
@@ -1,0 +1,17 @@
+[globals]
+
+[default]
+
+exten => pause_queue_member,1,NoOp()
+	same => n,PauseQueueMember(test_queue,Local/queue_member_one at default)
+
+exten => caller,1,NoOp()
+	same => n,Queue(test_queue,,,,3)
+
+exten => queue_member_one,1,NoOp()
+	same => n,Echo()
+	same => n,Hangup()
+
+exten => queue_member_two,1,NoOp()
+	same => n,Echo()
+	same => n,Hangup()

Propchange: asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/queues.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/queues.conf?view=auto&rev=3501
==============================================================================
--- asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/queues.conf (added)
+++ asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/queues.conf Tue Oct 30 16:19:09 2012
@@ -1,0 +1,9 @@
+[general]
+
+[test_queue]
+strategy = ringall
+timeout = 2
+retry = 1
+timeoutpriority = app|conf
+member => Local/queue_member_one at default
+member => Local/queue_member_two at default

Propchange: asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/queues.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/queues.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/configs/ast1/queues.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/test-config.yaml?view=auto&rev=3501
==============================================================================
--- asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/test-config.yaml (added)
+++ asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/test-config.yaml Tue Oct 30 16:19:09 2012
@@ -1,0 +1,162 @@
+testinfo:
+    summary: Test behavior of app_queue when a caller enters a Queue and one
+        agent is paused, and the other agent fails to answer the call
+    description: |
+        'This test verifies that when a caller enters a queue where an agent
+        is paused, that only the single non-paused agent is rung.  This also
+        verifies that after a period of time in which the single non-paused
+        agent fails to answer the call, that the caller is hung up on.  This
+        verifies both the CDR and CEL entries.'
+
+test-modules:
+    test-object:
+        config-section: test-object-config
+        typename: 'SimpleTestCase.SimpleTestCase'
+    modules:
+        -
+            config-section: 'cdr-config'
+            typename: 'cdr.CDRModule'
+        -
+            config-section: 'cel-config'
+            typename: 'cel.CELModule'
+
+test-object-config:
+    spawn-after-hangup: True
+    ignore-originate-failures: True
+    test-iterations:
+        -
+            channel: 'Local/pause_queue_member at default'
+            application: 'Echo'
+        -
+            channel: 'Local/caller at default'
+            application: 'Echo'
+
+cdr-config:
+    -
+        file: 'Master'
+        lines:
+            -
+                destination: 'pause_queue_member'
+                dcontext: 'default'
+                channel: 'Local/pause_queue_member at default-.*'
+                lastapp: 'Dial'
+                disposition: 'FAILED'
+            -
+                destination: 'pause_queue_member'
+                dcontext: 'default'
+                channel: 'Local/pause_queue_member at default-.*'
+                lastapp: 'PauseQueueMember'
+                disposition: 'NO ANSWER'
+            -
+                destination: 'queue_member_two'
+                dcontext: 'default'
+                channel: 'Local/queue_member_two at default-.*'
+                lastapp: 'Echo'
+                disposition: 'NO ANSWER'
+            -
+                destination: 'caller'
+                dcontext: 'default'
+                channel: 'Local/caller at default-.*'
+                lastapp: 'Queue'
+                disposition: 'NO ANSWER'
+            -
+                destination: 'caller'
+                dcontext: 'default'
+                channel: 'Local/caller at default-.*'
+                lastapp: 'Dial'
+                disposition: 'FAILED'
+
+cel-config:
+    -
+        file: 'Master'
+        lines:
+            -
+                eventtype: 'CHAN_START'
+                exten: 'pause_queue_member'
+                context: 'default'
+                channel: 'Local/pause_queue_member at default-.*'
+            -
+                eventtype: 'CHAN_START'
+                exten: 'pause_queue_member'
+                context: 'default'
+                channel: 'Local/pause_queue_member at default-.*'
+            -
+                eventtype: 'CHAN_END'
+                exten: 'pause_queue_member'
+                context: 'default'
+                channel: 'Local/pause_queue_member at default-.*'
+            -
+                eventtype: 'CHAN_START'
+                exten: 'caller'
+                context: 'default'
+                channel: 'Local/caller at default-.*'
+            -
+                eventtype: 'CHAN_START'
+                exten: 'caller'
+                context: 'default'
+                channel: 'Local/caller at default-.*'
+            -
+                eventtype: 'APP_START'
+                exten: 'caller'
+                context: 'default'
+                channel: 'Local/caller at default-.*'
+                app: 'Queue'
+            -
+                eventtype: 'CHAN_START'
+                exten: 'queue_member_two'
+                context: 'default'
+                channel: 'Local/queue_member_two at default-.*'
+            -
+                eventtype: 'CHAN_START'
+                exten: 'queue_member_two'
+                context: 'default'
+                channel: 'Local/queue_member_two at default-.*'
+            -
+                eventtype: 'CHAN_END'
+                exten: 'pause_queue_member'
+                context: 'default'
+                channel: 'Local/pause_queue_member at default-.*'
+            -
+                eventtype: 'CHAN_END'
+                exten: 'caller'
+                context: 'default'
+                cidnum: 'caller'
+                channel: 'Local/queue_member_two at default-.*'
+                app: 'AppQueue'
+                appdata: '\(Outgoing Line\)'
+            -
+                eventtype: 'CHAN_END'
+                exten: 'queue_member_two'
+                context: 'default'
+                channel: 'Local/queue_member_two at default-.*'
+            -
+                eventtype: 'APP_END'
+                exten: 'caller'
+                context: 'default'
+                channel: 'Local/caller at default-.*'
+                app: 'Queue'
+            -
+                eventtype: 'CHAN_END'
+                exten: 'caller'
+                context: 'default'
+                channel: 'Local/caller at default-.*'
+            -
+                eventtype: 'CHAN_END'
+                exten: 'caller'
+                context: 'default'
+                channel: 'Local/caller at default-.*'
+
+
+properties:
+    minversion: '12.0.0'
+    dependencies:
+        - python : 'twisted'
+        - python : 'starpy'
+        - asterisk : 'cdr_csv'
+        - asterisk : 'cel_custom'
+        - asterisk : 'app_queue'
+    tags:
+        - queues
+        - CDR
+        - CEL
+        - chan_local

Propchange: asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/apps/queues/queue_one_paused_no_answer/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: asterisk/trunk/tests/apps/queues/tests.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/queues/tests.yaml?view=diff&rev=3501&r1=3500&r2=3501
==============================================================================

[... 13 lines stripped ...]



More information about the asterisk-commits mailing list