[asterisk-commits] mjordan: branch mjordan/app_voicemail r1839 - in /asterisk/team/mjordan/app_v...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Aug 12 08:57:04 CDT 2011


Author: mjordan
Date: Fri Aug 12 08:57:01 2011
New Revision: 1839

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=1839
Log: (empty)

Added:
    asterisk/team/mjordan/app_voicemail/   (props changed)
      - copied from r1803, asterisk/trunk/
    asterisk/team/mjordan/app_voicemail/lib/python/asterisk/asterisk.py
      - copied unchanged from r1833, asterisk/trunk/lib/python/asterisk/asterisk.py
    asterisk/team/mjordan/app_voicemail/lib/python/asterisk/version.py
      - copied unchanged from r1809, asterisk/trunk/lib/python/asterisk/version.py
    asterisk/team/mjordan/app_voicemail/lib/python/asterisk/voicemail.py
      - copied unchanged from r1833, asterisk/trunk/lib/python/asterisk/voicemail.py
    asterisk/team/mjordan/app_voicemail/runtests.py
      - copied, changed from r1833, asterisk/trunk/runtests.py
    asterisk/team/mjordan/app_voicemail/tests/apps/tests.yaml
      - copied unchanged from r1833, asterisk/trunk/tests/apps/tests.yaml
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/
      - copied from r1833, asterisk/trunk/tests/apps/voicemail/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/extensions.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/manager.general.conf.inc   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/sip.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/voicemail.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast2/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast2/extensions.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast2/manager.general.conf.inc   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast2/sip.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/run-test   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/test-config.yaml   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/configs/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/configs/ast1/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/configs/ast1/extensions.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/configs/ast1/manager.general.conf.inc   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/configs/ast1/sip.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/configs/ast1/voicemail.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/configs/ast2/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/configs/ast2/extensions.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/configs/ast2/manager.general.conf.inc   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/configs/ast2/sip.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/run-test   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/test-config.yaml   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_password/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_password/configs/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_password/configs/ast1/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_password/configs/ast1/extensions.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_password/configs/ast1/manager.general.conf.inc   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_password/configs/ast1/sip.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_password/configs/ast1/voicemail.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_password/configs/ast2/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_password/configs/ast2/extensions.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_password/configs/ast2/manager.general.conf.inc   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_password/configs/ast2/sip.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_password/run-test   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_password/test-config.yaml   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_nominal/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_nominal/configs/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_nominal/configs/ast1/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_nominal/configs/ast1/extensions.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_nominal/configs/ast1/manager.general.conf.inc   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_nominal/configs/ast1/sip.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_nominal/configs/ast1/voicemail.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_nominal/configs/ast2/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_nominal/configs/ast2/extensions.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_nominal/configs/ast2/manager.general.conf.inc   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_nominal/configs/ast2/sip.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_nominal/run-test   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_nominal/test-config.yaml   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/func_vmcount/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/func_vmcount/configs/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/func_vmcount/configs/ast1/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/func_vmcount/configs/ast1/extensions.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/func_vmcount/configs/ast1/manager.general.conf.inc   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/func_vmcount/configs/ast1/voicemail.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/func_vmcount/run-test   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/func_vmcount/test-config.yaml   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_contexts/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_contexts/configs/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_contexts/configs/ast1/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_contexts/configs/ast1/extensions.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_contexts/configs/ast1/manager.general.conf.inc   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_contexts/configs/ast1/sip.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_contexts/configs/ast1/voicemail.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_contexts/configs/ast2/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_contexts/configs/ast2/extensions.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_contexts/configs/ast2/manager.general.conf.inc   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_contexts/configs/ast2/sip.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_contexts/run-test   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_contexts/test-config.yaml   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_external_notification/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_external_notification/configs/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_external_notification/configs/ast1/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_external_notification/configs/ast1/extensions.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_external_notification/configs/ast1/manager.general.conf.inc   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_external_notification/configs/ast1/sip.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_external_notification/configs/ast1/voicemail.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_external_notification/configs/ast2/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_external_notification/configs/ast2/extensions.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_external_notification/configs/ast2/manager.general.conf.inc   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_external_notification/configs/ast2/sip.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_external_notification/extern-notify-script.py   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_external_notification/run-test   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_external_notification/test-config.yaml   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_forwarding/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_forwarding/configs/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_forwarding/configs/ast1/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_forwarding/configs/ast1/extensions.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_forwarding/configs/ast1/manager.general.conf.inc   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_forwarding/configs/ast1/sip.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_forwarding/configs/ast1/voicemail.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_forwarding/configs/ast2/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_forwarding/configs/ast2/extensions.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_forwarding/configs/ast2/manager.general.conf.inc   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_forwarding/configs/ast2/sip.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_forwarding/run-test   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_forwarding/test-config.yaml   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_forwarding_auto_urgent/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_forwarding_auto_urgent/configs/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_forwarding_auto_urgent/configs/ast1/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_forwarding_auto_urgent/configs/ast1/extensions.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_forwarding_auto_urgent/configs/ast1/manager.general.conf.inc   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_forwarding_auto_urgent/configs/ast1/sip.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_forwarding_auto_urgent/configs/ast1/voicemail.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_forwarding_auto_urgent/configs/ast2/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_forwarding_auto_urgent/configs/ast2/extensions.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_forwarding_auto_urgent/configs/ast2/manager.general.conf.inc   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_forwarding_auto_urgent/configs/ast2/sip.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_forwarding_auto_urgent/run-test   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_forwarding_auto_urgent/test-config.yaml   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_priority/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_priority/configs/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_priority/configs/ast1/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_priority/configs/ast1/extensions.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_priority/configs/ast1/manager.general.conf.inc   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_priority/configs/ast1/sip.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_priority/configs/ast1/voicemail.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_priority/configs/ast2/
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_priority/configs/ast2/extensions.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_priority/configs/ast2/manager.general.conf.inc   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_priority/configs/ast2/sip.conf   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_priority/run-test   (with props)
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/leave_voicemail_priority/test-config.yaml   (with props)
    asterisk/team/mjordan/app_voicemail/tests/pbx/
      - copied from r1828, asterisk/trunk/tests/pbx/
Modified:
    asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/tests.yaml

Propchange: asterisk/team/mjordan/app_voicemail/
------------------------------------------------------------------------------
    reviewboard:url = https://reviewboard.asterisk.org

Propchange: asterisk/team/mjordan/app_voicemail/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Aug 12 08:57:01 2011
@@ -1,0 +1,2 @@
+asterisk-test-suite-report.xml
+*.pyc

Propchange: asterisk/team/mjordan/app_voicemail/
------------------------------------------------------------------------------
    svn:mergeinfo = /asterisk/trunk:1112

Copied: asterisk/team/mjordan/app_voicemail/runtests.py (from r1833, asterisk/trunk/runtests.py)
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/app_voicemail/runtests.py?view=diff&rev=1839&p1=asterisk/trunk/runtests.py&r1=1833&p2=asterisk/team/mjordan/app_voicemail/runtests.py&r2=1839
==============================================================================
--- asterisk/trunk/runtests.py (original)
+++ asterisk/team/mjordan/app_voicemail/runtests.py Fri Aug 12 08:57:01 2011
@@ -170,7 +170,7 @@
             p.wait()
             f.close()
 
-            self.passed = (p.returncode == 0 and self.expectPass) or (p.returncode and not self.expectPass)
+            self.passed = (p.returncode == 0 and self.expectPass) or (p.returncode != 0 and not self.expectPass)
         else:
             print "FAILED TO EXECUTE %s, it must exist and be executable" % cmd
         self.time = time.time() - start_time

Added: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/extensions.conf?view=auto&rev=1839
==============================================================================
--- asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/extensions.conf (added)
+++ asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/extensions.conf Fri Aug 12 08:57:01 2011
@@ -1,0 +1,21 @@
+; Accepts a voicemail message and tests that the voicemail application returned successfully.
+; Exiting out to any other context is a failure.
+;
+
+[voicemail]
+
+exten => 9000,1,NoOp()
+    same => n,Answer()
+    same => n,Verbose(1, Testing transfer of user to the attendant extension)
+    same => n,VMAuthenticate()
+    same => n,UserEvent(TestResult,result: fail,status: Failed to transition user to the a extension)
+    same => n,Wait(5)
+    same => n,Hangup()
+
+exten => a,1,NoOp()
+    same => n,Verbose(1, Successfully entered the attendant extension)
+    same => n,UserEvent(TestResult,result: pass,status: Successfully entered the a extension)
+    same => n,Wait(2)
+    same => n,Hangup()
+
+

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/manager.general.conf.inc
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/manager.general.conf.inc?view=auto&rev=1839
==============================================================================
--- asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/manager.general.conf.inc (added)
+++ asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/manager.general.conf.inc Fri Aug 12 08:57:01 2011
@@ -1,0 +1,1 @@
+enabled = yes

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/manager.general.conf.inc
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/manager.general.conf.inc
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/manager.general.conf.inc
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/sip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/sip.conf?view=auto&rev=1839
==============================================================================
--- asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/sip.conf (added)
+++ asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/sip.conf Fri Aug 12 08:57:01 2011
@@ -1,0 +1,13 @@
+[general]
+bindaddr = 127.0.0.1
+
+[ast2]
+type = friend
+context = voicemail
+fromuser = ast_server
+host = 127.0.0.2
+disallow = all
+allow = ulaw
+qualify = no
+insecure = invite
+

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/sip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/sip.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/sip.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/voicemail.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/voicemail.conf?view=auto&rev=1839
==============================================================================
--- asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/voicemail.conf (added)
+++ asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/voicemail.conf Fri Aug 12 08:57:01 2011
@@ -1,0 +1,19 @@
+; Voicemail Configuration
+
+[general]
+format = ulaw|wav49|wav
+skipms = 3000
+maxsilence = 0
+silencethreshold = 128
+maxlogins = 3
+minsecs = 0
+
+[zonemessages]
+eastern = America/New_York|'vm-received' Q 'digits/at' IMp
+central = America/Chicago|'vm-received' Q 'digits/at' IMp
+central24 = America/Chicago|'vm-received' q 'digits/at' H N 'hours'
+military = Zulu|'vm-received' q 'digits/at' H N 'hours' 'phonetic/z_p'
+european = Europe/Copenhagen|'vm-received' a d b 'digits/at' HM
+
+[default]
+9000 => 1234,Kinsey Moore

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/voicemail.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/voicemail.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast1/voicemail.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast2/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast2/extensions.conf?view=auto&rev=1839
==============================================================================
--- asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast2/extensions.conf (added)
+++ asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast2/extensions.conf Fri Aug 12 08:57:01 2011
@@ -1,0 +1,24 @@
+; Checks the authentication of a user against a mailbox and/or password combo
+;
+; You may need to alter the Wait(5) statement if the audio prompt
+; played back by the receiver has a longer greeting then the default.
+
+[sendvoicemail]
+exten => mailboxThenTransfer,1,NoOp()
+    same => n,Wait(5)
+    same => n,Verbose(1, Sending DTMF signal for mailbox)
+    same => n,SendDTMF(${MAILBOX})
+    same => n,SendDTMF(#)
+    same => n,Wait(1)
+    same => n,Verbose(1, Sending DTMF signal for transfer)
+    same => n,SendDTMF(*)
+    same => n,Wait(5)
+    same => n,Hangup()
+
+exten => transfer,1,NoOp()
+    same => n,Wait(5)
+    same => n,Verbose(1, Sending DTMF signal for transfer)
+    same => n,SendDTMF(*)
+    same => n,Wait(5)
+    same => n,Hangup()
+

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast2/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast2/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast2/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast2/manager.general.conf.inc
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast2/manager.general.conf.inc?view=auto&rev=1839
==============================================================================
--- asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast2/manager.general.conf.inc (added)
+++ asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast2/manager.general.conf.inc Fri Aug 12 08:57:01 2011
@@ -1,0 +1,2 @@
+enabled = yes
+bindaddr = 127.0.0.2

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast2/manager.general.conf.inc
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast2/manager.general.conf.inc
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast2/manager.general.conf.inc
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast2/sip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast2/sip.conf?view=auto&rev=1839
==============================================================================
--- asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast2/sip.conf (added)
+++ asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast2/sip.conf Fri Aug 12 08:57:01 2011
@@ -1,0 +1,11 @@
+[general]
+bindaddr = 127.0.0.2
+
+[ast1]
+type = friend
+fromuser = ast2
+host = 127.0.0.1
+disallow = all
+allow = ulaw
+qualify = no
+insecure = invite

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast2/sip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast2/sip.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/configs/ast2/sip.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/run-test?view=auto&rev=1839
==============================================================================
--- asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/run-test (added)
+++ asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/run-test Fri Aug 12 08:57:01 2011
@@ -1,0 +1,102 @@
+#!/usr/bin/env python
+# vim: sw=3 et:
+'''
+Copyright (C) 2011, Digium, Inc.
+Matt Jordan <mjordan at digium.com>
+
+This program is free software, distributed under the terms of
+the GNU General Public License Version 2.
+'''
+
+import sys
+import os
+import datetime
+
+from datetime import datetime
+from twisted.internet import reactor
+
+sys.path.append("lib/python")
+
+from asterisk.asterisk import Asterisk
+from asterisk.TestCase import TestCase
+
+class AuthenticateExtensions(TestCase):
+
+    def __init__(self, argv):
+        TestCase.__init__(self, argv)
+
+        self.create_asterisk(2)
+
+
+    def ami_connect(self, ami):
+        print str(datetime.now()) + " Got AMI Connect for instance " + str(ami.id)
+        TestCase.ami_connect(self, ami)
+
+        ami.registerEvent('UserEvent', self.user_event)
+
+        if not (ami.id == 0):
+            self.executeTest(ami)
+
+
+    def executeTest(self, ami):
+
+        """ Mailbox / password set to invalid mailbox, but valid password """
+        self.ast[ami.id].cli_exec("dialplan set global MAILBOX 9000")
+        self.ast[ami.id].cli_exec("dialplan set global PASSWORD 1234")
+
+        print str(datetime.now()) + " Originating call to sip/ast1/9000 from mailboxThenTransfer at sendvoicemail"
+
+        df = ami.originate("sip/ast1/9000", "sendvoicemail", "mailboxThenTransfer", 1)
+        df.addErrback(self.handleOriginateFailure)
+
+        print str(datetime.now()) + " Originating call to sip/ast1/9000 from transfer at sendvoicemail"
+
+        df = ami.originate("sip/ast1/9000", "sendvoicemail", "transfer", 1)
+        df.addErrback(self.handleOriginateFailure)
+
+    def handleOriginateFailure(self, reason):
+        print str(datetime.now()) + " error sending originate:"
+        print reason.getTraceback()
+        self.stop_reactor()
+
+        return reason
+
+
+    def user_event(self, ami, event):
+        if event['userevent'] != 'TestResult':
+            return
+
+        if event['result'] == 'pass':
+            self.passed = self.passed and True
+            print str(datetime.now()) + " Received pass result from VMAuthenticate test"
+        else:
+            print str(datetime.now()) + " VMAuthenticate Failure:"
+            print str(datetime.now()) + " result: %s" % (event['result'],)
+            print str(datetime.now()) + " error: %s" % (event['status'],)
+            self.passed = False
+
+        self.stop_reactor()
+
+    def run(self):
+        TestCase.run(self)
+        self.passed = True
+        self.create_ami_factory(2)
+
+
+def main(argv = sys.argv):
+
+    test = AuthenticateExtensions(argv)
+
+    test.start_asterisk()
+
+    reactor.run()
+
+    test.stop_asterisk()
+
+    if not test.passed:
+        return 1
+
+    return 0
+
+if __name__ == "__main__":
+   sys.exit(main() or 0)

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/run-test
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/run-test
------------------------------------------------------------------------------
    svn:executable = *

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/run-test
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/run-test
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/test-config.yaml?view=auto&rev=1839
==============================================================================
--- asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/test-config.yaml (added)
+++ asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/test-config.yaml Fri Aug 12 08:57:01 2011
@@ -1,0 +1,12 @@
+testinfo:
+    summary: 'Test entering the attendant extension from VMAuthenticate dialplan application'
+    description: |
+        This test verifies that a user will be transferred to the attendant extension a when they
+        enter the * character either from a mailbox or from a password
+
+properties:
+    minversion: '1.8'
+    dependencies:
+        - python : 'twisted'
+        - python : 'starpy'
+

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_extensions/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/configs/ast1/extensions.conf?view=auto&rev=1839
==============================================================================
--- asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/configs/ast1/extensions.conf (added)
+++ asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/configs/ast1/extensions.conf Fri Aug 12 08:57:01 2011
@@ -1,0 +1,14 @@
+; Accepts a voicemail message and tests that the voicemail application returned successfully.
+; Exiting out to any other context is a failure.
+;
+
+[voicemail]
+
+exten => 9000,1,NoOp()
+    same => n,Answer()
+    same => n,Verbose(1, Testing authentication of user failing to enter mailbox)
+    same => n,VMAuthenticate()
+    same => n,UserEvent(TestResult,result: fail,status: Authenticated invalid user)
+    same => n,Wait(5)
+    same => n,Hangup()
+

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/configs/ast1/manager.general.conf.inc
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/configs/ast1/manager.general.conf.inc?view=auto&rev=1839
==============================================================================
--- asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/configs/ast1/manager.general.conf.inc (added)
+++ asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/configs/ast1/manager.general.conf.inc Fri Aug 12 08:57:01 2011
@@ -1,0 +1,1 @@
+enabled = yes

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/configs/ast1/manager.general.conf.inc
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/configs/ast1/manager.general.conf.inc
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/configs/ast1/manager.general.conf.inc
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/configs/ast1/sip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/configs/ast1/sip.conf?view=auto&rev=1839
==============================================================================
--- asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/configs/ast1/sip.conf (added)
+++ asterisk/team/mjordan/app_voicemail/tests/apps/voicemail/authenticate_invalid_mailbox/configs/ast1/sip.conf Fri Aug 12 08:57:01 2011
@@ -1,0 +1,13 @@
+[general]
+bindaddr = 127.0.0.1
+
+[ast2]
+type = friend
+context = voicemail
+fromuser = ast_server
+host = 127.0.0.2
+disallow = all
+allow = ulaw
+qualify = no
+insecure = invite
+


[... 4153 lines stripped ...]



More information about the asterisk-commits mailing list