[asterisk-commits] mjordan: testsuite/asterisk/trunk r3687 - in /asterisk/trunk/tests/apps: ./ d...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Apr 8 10:48:23 CDT 2013
Author: mjordan
Date: Mon Apr 8 10:48:19 2013
New Revision: 3687
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=3687
Log:
Add basic dial tests
This adds tests for basic dialing in Asterisk. This checks a variety of two-party
dialing scenarios:
* Dialing a single party with nominal/off-nominal results
* Dialing multiple parties in parallel with nominal/off-nominal results
* Dialing where the caller hangs up before the remote party answers
For all tests, AMI events are checked.
Added:
asterisk/trunk/tests/apps/dial/
asterisk/trunk/tests/apps/dial/dial_answer/
asterisk/trunk/tests/apps/dial/dial_answer/configs/
asterisk/trunk/tests/apps/dial/dial_answer/configs/ast1/
asterisk/trunk/tests/apps/dial/dial_answer/configs/ast1/extensions.conf (with props)
asterisk/trunk/tests/apps/dial/dial_answer/configs/ast1/sip.conf (with props)
asterisk/trunk/tests/apps/dial/dial_answer/sipp/
asterisk/trunk/tests/apps/dial/dial_answer/sipp/charlie.xml (with props)
asterisk/trunk/tests/apps/dial/dial_answer/test-config.yaml (with props)
asterisk/trunk/tests/apps/dial/dial_busy/
asterisk/trunk/tests/apps/dial/dial_busy/configs/
asterisk/trunk/tests/apps/dial/dial_busy/configs/ast1/
asterisk/trunk/tests/apps/dial/dial_busy/configs/ast1/extensions.conf (with props)
asterisk/trunk/tests/apps/dial/dial_busy/configs/ast1/sip.conf (with props)
asterisk/trunk/tests/apps/dial/dial_busy/sipp/
asterisk/trunk/tests/apps/dial/dial_busy/sipp/bob.xml (with props)
asterisk/trunk/tests/apps/dial/dial_busy/test-config.yaml (with props)
asterisk/trunk/tests/apps/dial/dial_congestion/
asterisk/trunk/tests/apps/dial/dial_congestion/configs/
asterisk/trunk/tests/apps/dial/dial_congestion/configs/ast1/
asterisk/trunk/tests/apps/dial/dial_congestion/configs/ast1/extensions.conf (with props)
asterisk/trunk/tests/apps/dial/dial_congestion/configs/ast1/sip.conf (with props)
asterisk/trunk/tests/apps/dial/dial_congestion/sipp/
asterisk/trunk/tests/apps/dial/dial_congestion/sipp/bob.xml (with props)
asterisk/trunk/tests/apps/dial/dial_congestion/test-config.yaml (with props)
asterisk/trunk/tests/apps/dial/dial_dtmf_hangup_cancel/
asterisk/trunk/tests/apps/dial/dial_dtmf_hangup_cancel/configs/
asterisk/trunk/tests/apps/dial/dial_dtmf_hangup_cancel/configs/ast1/
asterisk/trunk/tests/apps/dial/dial_dtmf_hangup_cancel/configs/ast1/extensions.conf (with props)
asterisk/trunk/tests/apps/dial/dial_dtmf_hangup_cancel/configs/ast1/sip.conf (with props)
asterisk/trunk/tests/apps/dial/dial_dtmf_hangup_cancel/send_dtmf.py (with props)
asterisk/trunk/tests/apps/dial/dial_dtmf_hangup_cancel/sipp/
asterisk/trunk/tests/apps/dial/dial_dtmf_hangup_cancel/sipp/bob.xml (with props)
asterisk/trunk/tests/apps/dial/dial_dtmf_hangup_cancel/test-config.yaml (with props)
asterisk/trunk/tests/apps/dial/dial_hangup/
asterisk/trunk/tests/apps/dial/dial_hangup/configs/
asterisk/trunk/tests/apps/dial/dial_hangup/configs/ast1/
asterisk/trunk/tests/apps/dial/dial_hangup/configs/ast1/extensions.conf (with props)
asterisk/trunk/tests/apps/dial/dial_hangup/configs/ast1/sip.conf (with props)
asterisk/trunk/tests/apps/dial/dial_hangup/hangup.py (with props)
asterisk/trunk/tests/apps/dial/dial_hangup/sipp/
asterisk/trunk/tests/apps/dial/dial_hangup/sipp/charlie.xml (with props)
asterisk/trunk/tests/apps/dial/dial_hangup/test-config.yaml (with props)
asterisk/trunk/tests/apps/dial/dial_no_answer/
asterisk/trunk/tests/apps/dial/dial_no_answer/configs/
asterisk/trunk/tests/apps/dial/dial_no_answer/configs/ast1/
asterisk/trunk/tests/apps/dial/dial_no_answer/configs/ast1/extensions.conf (with props)
asterisk/trunk/tests/apps/dial/dial_no_answer/configs/ast1/sip.conf (with props)
asterisk/trunk/tests/apps/dial/dial_no_answer/sipp/
asterisk/trunk/tests/apps/dial/dial_no_answer/sipp/bob.xml (with props)
asterisk/trunk/tests/apps/dial/dial_no_answer/test-config.yaml (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_busy/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_busy/configs/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_busy/configs/ast1/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_busy/configs/ast1/extensions.conf (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_busy/configs/ast1/sip.conf (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_busy/sipp/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_busy/sipp/ua_busy.xml (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_busy/test-config.yaml (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_cancel/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_cancel/configs/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_cancel/configs/ast1/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_cancel/configs/ast1/extensions.conf (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_cancel/configs/ast1/sip.conf (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_cancel/send_dtmf.py (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_cancel/sipp/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_cancel/sipp/ua_wait_cancel.xml (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_cancel/test-config.yaml (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_congestion/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_congestion/configs/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_congestion/configs/ast1/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_congestion/configs/ast1/extensions.conf (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_congestion/configs/ast1/sip.conf (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_congestion/sipp/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_congestion/sipp/ua_congestion.xml (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_congestion/test-config.yaml (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_no_answer/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_no_answer/configs/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_no_answer/configs/ast1/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_no_answer/configs/ast1/extensions.conf (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_no_answer/configs/ast1/sip.conf (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_no_answer/sipp/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_no_answer/sipp/ua_no_answer.xml (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_no_answer/test-config.yaml (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_unavail/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_unavail/configs/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_unavail/configs/ast1/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_unavail/configs/ast1/extensions.conf (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_unavail/configs/ast1/sip.conf (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_unavail/sipp/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_unavail/sipp/ua_unavail.xml (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_all_unavail/test-config.yaml (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_answer_cancel/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_answer_cancel/configs/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_answer_cancel/configs/ast1/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_answer_cancel/configs/ast1/extensions.conf (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_answer_cancel/configs/ast1/sip.conf (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_answer_cancel/sipp/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_answer_cancel/sipp/bob.xml (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_answer_cancel/sipp/charlie.xml (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_answer_cancel/test-config.yaml (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_busy/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_busy/configs/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_busy/configs/ast1/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_busy/configs/ast1/extensions.conf (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_busy/configs/ast1/sip.conf (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_busy/sipp/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_busy/sipp/bob.xml (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_busy/sipp/charlie.xml (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_busy/test-config.yaml (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_congestion/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_congestion/configs/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_congestion/configs/ast1/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_congestion/configs/ast1/extensions.conf (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_congestion/configs/ast1/sip.conf (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_congestion/sipp/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_congestion/sipp/bob.xml (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_congestion/sipp/charlie.xml (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_congestion/test-config.yaml (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_no_answer/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_no_answer/configs/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_no_answer/configs/ast1/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_no_answer/configs/ast1/extensions.conf (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_no_answer/configs/ast1/sip.conf (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_no_answer/sipp/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_no_answer/sipp/bob.xml (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_no_answer/sipp/charlie.xml (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_no_answer/test-config.yaml (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_unavail/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_unavail/configs/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_unavail/configs/ast1/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_unavail/configs/ast1/extensions.conf (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_unavail/configs/ast1/sip.conf (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_unavail/sipp/
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_unavail/sipp/bob.xml (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_unavail/sipp/charlie.xml (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/dial_parallel_single_unavail/test-config.yaml (with props)
asterisk/trunk/tests/apps/dial/dial_parallel/tests.yaml (with props)
asterisk/trunk/tests/apps/dial/dial_timeout/
asterisk/trunk/tests/apps/dial/dial_timeout/configs/
asterisk/trunk/tests/apps/dial/dial_timeout/configs/ast1/
asterisk/trunk/tests/apps/dial/dial_timeout/configs/ast1/extensions.conf (with props)
asterisk/trunk/tests/apps/dial/dial_timeout/configs/ast1/sip.conf (with props)
asterisk/trunk/tests/apps/dial/dial_timeout/sipp/
asterisk/trunk/tests/apps/dial/dial_timeout/sipp/bob.xml (with props)
asterisk/trunk/tests/apps/dial/dial_timeout/test-config.yaml (with props)
asterisk/trunk/tests/apps/dial/dial_unavail/
asterisk/trunk/tests/apps/dial/dial_unavail/configs/
asterisk/trunk/tests/apps/dial/dial_unavail/configs/ast1/
asterisk/trunk/tests/apps/dial/dial_unavail/configs/ast1/extensions.conf (with props)
asterisk/trunk/tests/apps/dial/dial_unavail/configs/ast1/sip.conf (with props)
asterisk/trunk/tests/apps/dial/dial_unavail/sipp/
asterisk/trunk/tests/apps/dial/dial_unavail/sipp/bob.xml (with props)
asterisk/trunk/tests/apps/dial/dial_unavail/test-config.yaml (with props)
asterisk/trunk/tests/apps/dial/tests.yaml (with props)
Modified:
asterisk/trunk/tests/apps/tests.yaml
Added: asterisk/trunk/tests/apps/dial/dial_answer/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/dial/dial_answer/configs/ast1/extensions.conf?view=auto&rev=3687
==============================================================================
--- asterisk/trunk/tests/apps/dial/dial_answer/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/apps/dial/dial_answer/configs/ast1/extensions.conf Mon Apr 8 10:48:19 2013
@@ -1,0 +1,24 @@
+[default]
+
+exten => s,1,NoOp()
+ same => n,Dial(SIP/charlie,,b(default^apply_handler^1))
+ same => n,Hangup()
+
+exten => apply_handler,1,NoOp()
+ same => n,Set(CHANNEL(hangup_handler_push)=handler,s,1)
+ same => n,Return()
+
+[handler]
+
+exten => s,1,NoOp()
+ same => n,Set(HANGUP_CHANNELS=${HANGUPCAUSE_KEYS()})
+ same => n(hu_begin),NoOp()
+ same => n,GotoIf($[${LEN(${HANGUP_CHANNELS})}=0]?hu_exit)
+ same => n,Set(ARRAY(item)=${HANGUP_CHANNELS})
+ same => n,Set(HANGUP_CHANNELS=${HANGUP_CHANNELS:${LEN(${item})}})
+ same => n,UserEvent(HangupCause,HangupChannel: ${item},TechCause: ${HANGUPCAUSE(${item},tech)},AsteriskCause: ${HANGUPCAUSE(${item},ast)})
+ same => n,GotoIf($[${LEN(${HANGUP_CHANNELS})}=0]?hu_exit)
+ same => n,Set(HANGUP_CHANNELS=${HANGUP_CHANNELS:1})
+ same => n,Goto(hu_begin)
+ same => n(hu_exit),NoOp()
+ same => n,Return()
Propchange: asterisk/trunk/tests/apps/dial/dial_answer/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/apps/dial/dial_answer/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/apps/dial/dial_answer/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/apps/dial/dial_answer/configs/ast1/sip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/dial/dial_answer/configs/ast1/sip.conf?view=auto&rev=3687
==============================================================================
--- asterisk/trunk/tests/apps/dial/dial_answer/configs/ast1/sip.conf (added)
+++ asterisk/trunk/tests/apps/dial/dial_answer/configs/ast1/sip.conf Mon Apr 8 10:48:19 2013
@@ -1,0 +1,10 @@
+[general]
+
+[charlie]
+context=default
+type=peer
+host=127.0.0.1
+port=5067
+insecure=invite
+disallow=all
+allow=ulaw
Propchange: asterisk/trunk/tests/apps/dial/dial_answer/configs/ast1/sip.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/apps/dial/dial_answer/configs/ast1/sip.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/apps/dial/dial_answer/configs/ast1/sip.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/apps/dial/dial_answer/sipp/charlie.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/dial/dial_answer/sipp/charlie.xml?view=auto&rev=3687
==============================================================================
--- asterisk/trunk/tests/apps/dial/dial_answer/sipp/charlie.xml (added)
+++ asterisk/trunk/tests/apps/dial/dial_answer/sipp/charlie.xml Mon Apr 8 10:48:19 2013
@@ -1,0 +1,106 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<!-- This program is free software; you can redistribute it and/or -->
+<!-- modify it under the terms of the GNU General Public License as -->
+<!-- published by the Free Software Foundation; either version 2 of the -->
+<!-- License, or (at your option) any later version. -->
+<!-- -->
+<!-- This program is distributed in the hope that it will be useful, -->
+<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of -->
+<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -->
+<!-- GNU General Public License for more details. -->
+<!-- -->
+<!-- You should have received a copy of the GNU General Public License -->
+<!-- along with this program; if not, write to the -->
+<!-- Free Software Foundation, Inc., -->
+<!-- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -->
+<!-- -->
+<!-- Sipp default 'uas' scenario. -->
+<!-- -->
+
+<scenario name="Basic UAS responder">
+ <Global variables="remote_tag" />
+ <recv request="INVITE" crlf="true">
+ <!-- Save the from tag. We'll need it when we send our BYE -->
+ <action>
+ <ereg regexp=".*(;tag=.*)"
+ header="From:"
+ search_in="hdr"
+ check_it="true"
+ assign_to="remote_tag"/>
+ </action>
+ </recv>
+
+ <send>
+ <![CDATA[
+
+ SIP/2.0 180 Ringing
+ [last_Via:]
+ [last_From:]
+ [last_To:];tag=[pid]SIPpTag01[call_number]
+ [last_Call-ID:]
+ [last_CSeq:]
+ Contact: <sip:[local_ip]:[local_port];transport=[transport]>
+ Content-Length: 0
+
+ ]]>
+ </send>
+
+ <pause milliseconds="500" />
+
+ <send retrans="500">
+ <![CDATA[
+
+ SIP/2.0 200 OK
+ [last_Via:]
+ [last_From:]
+ [last_To:];tag=[pid]SIPpTag01[call_number]
+ [last_Call-ID:]
+ [last_CSeq:]
+ Contact: <sip:[local_ip]:[local_port];transport=[transport]>
+ Content-Type: application/sdp
+ Content-Length: [len]
+
+ v=0
+ o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
+ s=-
+ c=IN IP[media_ip_type] [media_ip]
+ t=0 0
+ m=audio [media_port] RTP/AVP 0
+ a=rtpmap:0 PCMU/8000
+
+ ]]>
+ </send>
+
+ <recv request="ACK"
+ rtd="true"
+ crlf="true">
+ </recv>
+
+ <send retrans="500">
+ <![CDATA[
+
+ BYE sip:[service]@[remote_ip]:[remote_port] SIP/2.0
+ Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+ From: Charlie <sip:Charlie@[local_ip]:[local_port]>;tag=[pid]SIPpTag01[call_number]
+ To: Asterisk <sip:[service]@[remote_ip]:[remote_port]>[$remote_tag]
+ [last_Call-ID:]
+ CSeq: [cseq] BYE
+ Contact: sip:Charlie@[local_ip]:[local_port]
+ Max-Forwards: 70
+ Subject: Performance Test
+ Content-Length: 0
+
+ ]]>
+ </send>
+
+ <recv response="200">
+ </recv>
+
+ <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
+
+ <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
+
+</scenario>
+
Propchange: asterisk/trunk/tests/apps/dial/dial_answer/sipp/charlie.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/apps/dial/dial_answer/sipp/charlie.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/apps/dial/dial_answer/sipp/charlie.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/apps/dial/dial_answer/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/dial/dial_answer/test-config.yaml?view=auto&rev=3687
==============================================================================
--- asterisk/trunk/tests/apps/dial/dial_answer/test-config.yaml (added)
+++ asterisk/trunk/tests/apps/dial/dial_answer/test-config.yaml Mon Apr 8 10:48:19 2013
@@ -1,0 +1,82 @@
+testinfo:
+ summary: 'Dial Answer'
+ description: |
+ 'Dial an endpoint and make sure it Answers'
+
+properties:
+ minversion: '12.0.0'
+ dependencies:
+ - python : 'twisted'
+ - python : 'starpy'
+ - app : 'sipp'
+ tags:
+ - SIP
+ - dial
+test-modules:
+ test-object:
+ config-section: sipp-config
+ typename: 'sipp.SIPpTestCase'
+ modules:
+ -
+ config-section: ami-config
+ typename: 'ami.AMIEventModule'
+ -
+ config-section: originator-config
+ typename: 'PluggableModules.Originator'
+
+ami-config:
+ -
+ type: 'headermatch'
+ conditions:
+ match:
+ Event: 'UserEvent'
+ UserEvent: 'HangupCause'
+ HangupChannel: 'SIP/charlie-.*'
+ requirements:
+ match:
+ TechCause: 'SIP 200 OK'
+ AsteriskCause: 'Normal Clearing'
+ count: '1'
+ -
+ type: 'headermatch'
+ conditions:
+ match:
+ Event: 'DialBegin'
+ ChannelDest: 'SIP/charlie-.*'
+ requirements:
+ match:
+ Channel: 'Local/s at default-.*'
+ CallerIDNum: '<unknown>'
+ CallerIDName: '<unknown>'
+ ConnectedLineNum: '<unknown>'
+ ConnectedLineName: '<unknown>'
+ DialString: 'charlie'
+ count: '1'
+ -
+ type: 'headermatch'
+ conditions:
+ match:
+ Event: 'DialEnd'
+ ChannelDest: 'SIP/charlie-.*'
+ requirements:
+ match:
+ Channel: 'Local/s at default-.*'
+ CallerIDNum: '<unknown>'
+ CallerIDName: '<unknown>'
+ ConnectedLineNum: '<unknown>'
+ ConnectedLineName: '<unknown>'
+ DialStatus: 'ANSWER'
+ count: '1'
+
+originator-config:
+ channel: 'Local/s at default'
+ application: 'Echo'
+ ignore-originate-failure: 'yes'
+ trigger: 'ami_connect'
+
+sipp-config:
+ fail-on-any: True
+ test-iterations:
+ -
+ scenarios:
+ - { 'key-args': {'scenario': 'charlie.xml', '-p': '5067'} }
Propchange: asterisk/trunk/tests/apps/dial/dial_answer/test-config.yaml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/apps/dial/dial_answer/test-config.yaml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/apps/dial/dial_answer/test-config.yaml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/apps/dial/dial_busy/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/dial/dial_busy/configs/ast1/extensions.conf?view=auto&rev=3687
==============================================================================
--- asterisk/trunk/tests/apps/dial/dial_busy/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/apps/dial/dial_busy/configs/ast1/extensions.conf Mon Apr 8 10:48:19 2013
@@ -1,0 +1,24 @@
+[default]
+
+exten => s,1,NoOp()
+ same => n,Dial(SIP/bob,,b(default^apply_handler^1))
+ same => n,Hangup()
+
+exten => apply_handler,1,NoOp()
+ same => n,Set(CHANNEL(hangup_handler_push)=handler,s,1)
+ same => n,Return()
+
+[handler]
+
+exten => s,1,NoOp()
+ same => n,Set(HANGUP_CHANNELS=${HANGUPCAUSE_KEYS()})
+ same => n(hu_begin),NoOp()
+ same => n,GotoIf($[${LEN(${HANGUP_CHANNELS})}=0]?hu_exit)
+ same => n,Set(ARRAY(item)=${HANGUP_CHANNELS})
+ same => n,Set(HANGUP_CHANNELS=${HANGUP_CHANNELS:${LEN(${item})}})
+ same => n,UserEvent(HangupCause,HangupChannel: ${item},TechCause: ${HANGUPCAUSE(${item},tech)},AsteriskCause: ${HANGUPCAUSE(${item},ast)})
+ same => n,GotoIf($[${LEN(${HANGUP_CHANNELS})}=0]?hu_exit)
+ same => n,Set(HANGUP_CHANNELS=${HANGUP_CHANNELS:1})
+ same => n,Goto(hu_begin)
+ same => n(hu_exit),NoOp()
+ same => n,Return()
Propchange: asterisk/trunk/tests/apps/dial/dial_busy/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/apps/dial/dial_busy/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/apps/dial/dial_busy/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/apps/dial/dial_busy/configs/ast1/sip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/dial/dial_busy/configs/ast1/sip.conf?view=auto&rev=3687
==============================================================================
--- asterisk/trunk/tests/apps/dial/dial_busy/configs/ast1/sip.conf (added)
+++ asterisk/trunk/tests/apps/dial/dial_busy/configs/ast1/sip.conf Mon Apr 8 10:48:19 2013
@@ -1,0 +1,10 @@
+[general]
+
+[bob]
+context=default
+type=peer
+host=127.0.0.1
+port=5066
+insecure=invite
+disallow=all
+allow=ulaw
Propchange: asterisk/trunk/tests/apps/dial/dial_busy/configs/ast1/sip.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/apps/dial/dial_busy/configs/ast1/sip.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/apps/dial/dial_busy/configs/ast1/sip.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/apps/dial/dial_busy/sipp/bob.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/dial/dial_busy/sipp/bob.xml?view=auto&rev=3687
==============================================================================
--- asterisk/trunk/tests/apps/dial/dial_busy/sipp/bob.xml (added)
+++ asterisk/trunk/tests/apps/dial/dial_busy/sipp/bob.xml Mon Apr 8 10:48:19 2013
@@ -1,0 +1,59 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<scenario name="Basic UAS responder">
+ <recv request="INVITE" crlf="true">
+ </recv>
+
+ <send>
+ <![CDATA[
+
+ SIP/2.0 180 Ringing
+ [last_Via:]
+ [last_From:]
+ [last_To:];tag=[pid]SIPpTag01[call_number]
+ [last_Call-ID:]
+ [last_CSeq:]
+ Contact: <sip:[local_ip]:[local_port];transport=[transport]>
+ Content-Length: 0
+
+ ]]>
+ </send>
+
+ <send retrans="500">
+ <![CDATA[
+
+ SIP/2.0 486 Busy Here
+ [last_Via:]
+ [last_From:]
+ [last_To:];tag=[pid]SIPpTag01[call_number]
+ [last_Call-ID:]
+ [last_CSeq:]
+ Contact: <sip:[local_ip]:[local_port];transport=[transport]>
+ Content-Type: application/sdp
+ Content-Length: [len]
+
+ v=0
+ o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
+ s=-
+ c=IN IP[media_ip_type] [media_ip]
+ t=0 0
+ m=audio [media_port] RTP/AVP 0
+ a=rtpmap:0 PCMU/8000
+
+ ]]>
+ </send>
+
+ <recv request="ACK"
+ rtd="true"
+ crlf="true">
+ </recv>
+
+ <timewait milliseconds="500"/>
+
+ <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
+
+ <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
+
+</scenario>
+
Propchange: asterisk/trunk/tests/apps/dial/dial_busy/sipp/bob.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/apps/dial/dial_busy/sipp/bob.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/apps/dial/dial_busy/sipp/bob.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/apps/dial/dial_busy/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/dial/dial_busy/test-config.yaml?view=auto&rev=3687
==============================================================================
--- asterisk/trunk/tests/apps/dial/dial_busy/test-config.yaml (added)
+++ asterisk/trunk/tests/apps/dial/dial_busy/test-config.yaml Mon Apr 8 10:48:19 2013
@@ -1,0 +1,86 @@
+testinfo:
+ summary: 'Dial Busy'
+ description: |
+ 'Dial an endpoint and get a response code that maps to a Busy status'
+
+properties:
+ minversion: '12.0.0'
+ dependencies:
+ - python : 'twisted'
+ - python : 'starpy'
+ - app : 'sipp'
+ tags:
+ - SIP
+ - dial
+test-modules:
+ test-object:
+ config-section: sipp-config
+ typename: 'sipp.SIPpTestCase'
+ modules:
+ -
+ config-section: ami-config
+ typename: 'ami.AMIEventModule'
+ -
+ config-section: originator-config
+ typename: 'PluggableModules.Originator'
+
+ami-config:
+ -
+ type: 'headermatch'
+ conditions:
+ match:
+ Event: 'UserEvent'
+ UserEvent: 'HangupCause'
+ requirements:
+ match:
+ HangupChannel: 'SIP/bob-.*'
+ TechCause: 'SIP 486 Busy Here'
+ AsteriskCause: 'User busy'
+ count: '1'
+ -
+ type: 'headermatch'
+ conditions:
+ match:
+ Event: 'DialBegin'
+ requirements:
+ match:
+ Channel: 'Local/s at default-.*'
+ Uniqueid: '.*'
+ ChannelDest: 'SIP/bob-.*'
+ UniqueidDest: '.*'
+ CallerIDNum: '<unknown>'
+ CallerIDName: '<unknown>'
+ ConnectedLineNum: '<unknown>'
+ ConnectedLineName: '<unknown>'
+ Dialstring: 'bob'
+ count: '1'
+ -
+ type: 'headermatch'
+ conditions:
+ match:
+ Event: 'DialEnd'
+ requirements:
+ match:
+ Channel: 'Local/s at default-.*'
+ Uniqueid: '.*'
+ ChannelDest: 'SIP/bob-.*'
+ UniqueidDest: '.*'
+ CallerIDNum: '<unknown>'
+ CallerIDName: '<unknown>'
+ ConnectedLineNum: '<unknown>'
+ ConnectedLineName: '<unknown>'
+ DialStatus: 'BUSY'
+ count: '1'
+
+originator-config:
+ channel: 'Local/s at default'
+ application: 'Echo'
+ ignore-originate-failure: 'yes'
+ trigger: 'scenario_start'
+
+sipp-config:
+ fail-on-any: True
+ test-iterations:
+ -
+ scenarios:
+ - { 'key-args': {'scenario': 'bob.xml', '-p': '5066'} }
Propchange: asterisk/trunk/tests/apps/dial/dial_busy/test-config.yaml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/apps/dial/dial_busy/test-config.yaml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/apps/dial/dial_busy/test-config.yaml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/apps/dial/dial_congestion/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/dial/dial_congestion/configs/ast1/extensions.conf?view=auto&rev=3687
==============================================================================
--- asterisk/trunk/tests/apps/dial/dial_congestion/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/apps/dial/dial_congestion/configs/ast1/extensions.conf Mon Apr 8 10:48:19 2013
@@ -1,0 +1,24 @@
+[default]
+
+exten => s,1,NoOp()
+ same => n,Dial(SIP/bob,,b(default^apply_handler^1))
+ same => n,Hangup()
+
+exten => apply_handler,1,NoOp()
+ same => n,Set(CHANNEL(hangup_handler_push)=handler,s,1)
+ same => n,Return()
+
+[handler]
+
+exten => s,1,NoOp()
+ same => n,Set(HANGUP_CHANNELS=${HANGUPCAUSE_KEYS()})
+ same => n(hu_begin),NoOp()
+ same => n,GotoIf($[${LEN(${HANGUP_CHANNELS})}=0]?hu_exit)
+ same => n,Set(ARRAY(item)=${HANGUP_CHANNELS})
+ same => n,Set(HANGUP_CHANNELS=${HANGUP_CHANNELS:${LEN(${item})}})
+ same => n,UserEvent(HangupCause,HangupChannel: ${item},TechCause: ${HANGUPCAUSE(${item},tech)},AsteriskCause: ${HANGUPCAUSE(${item},ast)})
+ same => n,GotoIf($[${LEN(${HANGUP_CHANNELS})}=0]?hu_exit)
+ same => n,Set(HANGUP_CHANNELS=${HANGUP_CHANNELS:1})
+ same => n,Goto(hu_begin)
+ same => n(hu_exit),NoOp()
+ same => n,Return()
Propchange: asterisk/trunk/tests/apps/dial/dial_congestion/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/apps/dial/dial_congestion/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/apps/dial/dial_congestion/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/apps/dial/dial_congestion/configs/ast1/sip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/dial/dial_congestion/configs/ast1/sip.conf?view=auto&rev=3687
==============================================================================
--- asterisk/trunk/tests/apps/dial/dial_congestion/configs/ast1/sip.conf (added)
+++ asterisk/trunk/tests/apps/dial/dial_congestion/configs/ast1/sip.conf Mon Apr 8 10:48:19 2013
@@ -1,0 +1,10 @@
+[general]
+
+[bob]
+context=default
+type=peer
+host=127.0.0.1
+port=5066
+insecure=invite
+disallow=all
+allow=ulaw
Propchange: asterisk/trunk/tests/apps/dial/dial_congestion/configs/ast1/sip.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/apps/dial/dial_congestion/configs/ast1/sip.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/apps/dial/dial_congestion/configs/ast1/sip.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/apps/dial/dial_congestion/sipp/bob.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/dial/dial_congestion/sipp/bob.xml?view=auto&rev=3687
==============================================================================
--- asterisk/trunk/tests/apps/dial/dial_congestion/sipp/bob.xml (added)
+++ asterisk/trunk/tests/apps/dial/dial_congestion/sipp/bob.xml Mon Apr 8 10:48:19 2013
@@ -1,0 +1,59 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<scenario name="Basic UAS responder">
+ <recv request="INVITE" crlf="true">
+ </recv>
+
+ <send>
+ <![CDATA[
+
+ SIP/2.0 180 Ringing
+ [last_Via:]
+ [last_From:]
+ [last_To:];tag=[pid]SIPpTag01[call_number]
+ [last_Call-ID:]
+ [last_CSeq:]
+ Contact: <sip:[local_ip]:[local_port];transport=[transport]>
+ Content-Length: 0
+
+ ]]>
+ </send>
+
+ <send retrans="500">
+ <![CDATA[
+
+ SIP/2.0 503 Service Unavailable
+ [last_Via:]
+ [last_From:]
+ [last_To:];tag=[pid]SIPpTag01[call_number]
+ [last_Call-ID:]
+ [last_CSeq:]
+ Contact: <sip:[local_ip]:[local_port];transport=[transport]>
+ Content-Type: application/sdp
+ Content-Length: [len]
+
+ v=0
+ o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
+ s=-
+ c=IN IP[media_ip_type] [media_ip]
+ t=0 0
+ m=audio [media_port] RTP/AVP 0
+ a=rtpmap:0 PCMU/8000
+
+ ]]>
+ </send>
+
+ <recv request="ACK"
+ rtd="true"
+ crlf="true">
+ </recv>
+
+ <timewait milliseconds="500"/>
+
+ <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
+
+ <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
+
+</scenario>
+
Propchange: asterisk/trunk/tests/apps/dial/dial_congestion/sipp/bob.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/apps/dial/dial_congestion/sipp/bob.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/apps/dial/dial_congestion/sipp/bob.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/apps/dial/dial_congestion/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/dial/dial_congestion/test-config.yaml?view=auto&rev=3687
==============================================================================
--- asterisk/trunk/tests/apps/dial/dial_congestion/test-config.yaml (added)
+++ asterisk/trunk/tests/apps/dial/dial_congestion/test-config.yaml Mon Apr 8 10:48:19 2013
@@ -1,0 +1,86 @@
+testinfo:
+ summary: 'Dial Congestion'
+ description: |
+ 'Dial an endpoint and get a response code that maps to a Congestion status'
+
+properties:
+ minversion: '12.0.0'
+ dependencies:
+ - python : 'twisted'
+ - python : 'starpy'
[... 5280 lines stripped ...]
More information about the asterisk-commits
mailing list