[asterisk-commits] kharwell: testsuite/asterisk/trunk r4434 - in /asterisk/trunk/tests/channels/...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Dec 11 14:30:22 CST 2013
Author: kharwell
Date: Wed Dec 11 14:30:20 2013
New Revision: 4434
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=4434
Log:
Testsuite res_pjsip_messaging: Message to default outbound endpoint
Tests sending a message to an arbitrary URI using the default outbound endpoint.
Added:
asterisk/trunk/tests/channels/pjsip/message/message_to_uri/
asterisk/trunk/tests/channels/pjsip/message/message_to_uri/configs/
asterisk/trunk/tests/channels/pjsip/message/message_to_uri/configs/ast1/
asterisk/trunk/tests/channels/pjsip/message/message_to_uri/configs/ast1/extensions.conf (with props)
asterisk/trunk/tests/channels/pjsip/message/message_to_uri/configs/ast1/pjsip.conf (with props)
asterisk/trunk/tests/channels/pjsip/message/message_to_uri/sipp/
asterisk/trunk/tests/channels/pjsip/message/message_to_uri/sipp/message.xml (with props)
asterisk/trunk/tests/channels/pjsip/message/message_to_uri/sipp/message_recv.xml (with props)
asterisk/trunk/tests/channels/pjsip/message/message_to_uri/test-config.yaml (with props)
Added: asterisk/trunk/tests/channels/pjsip/message/message_to_uri/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/message/message_to_uri/configs/ast1/extensions.conf?view=auto&rev=4434
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/message/message_to_uri/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/message/message_to_uri/configs/ast1/extensions.conf Wed Dec 11 14:30:20 2013
@@ -1,0 +1,7 @@
+[default]
+
+exten => user1,1,Verbose(1,Got a message from SIPp)
+ same => n,Verbose(1,To: ${MESSAGE(to)})
+ same => n,Verbose(1,From: ${MESSAGE(from)})
+ same => n,Verbose(1,Body: ${MESSAGE(body)})
+ same => n,MessageSend(pjsip:127.0.0.1:5062,sip:127.0.0.1)
Propchange: asterisk/trunk/tests/channels/pjsip/message/message_to_uri/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/channels/pjsip/message/message_to_uri/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Rev URL
Propchange: asterisk/trunk/tests/channels/pjsip/message/message_to_uri/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/channels/pjsip/message/message_to_uri/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/message/message_to_uri/configs/ast1/pjsip.conf?view=auto&rev=4434
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/message/message_to_uri/configs/ast1/pjsip.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/message/message_to_uri/configs/ast1/pjsip.conf Wed Dec 11 14:30:20 2013
@@ -1,0 +1,28 @@
+[global]
+type=global
+default_outbound_endpoint=outbound_endpoint
+
+[local]
+type=transport
+protocol=udp
+bind=0.0.0.0
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+[outbound_endpoint]
+type=endpoint
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+[user]
+type=aor
+contact=sip:user at 127.0.0.1:5061
+max_contacts=1
+
+[user]
+type=endpoint
+context=default
+aors=user
+direct_media=no
+disallow=all
+allow=ulaw
Propchange: asterisk/trunk/tests/channels/pjsip/message/message_to_uri/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/channels/pjsip/message/message_to_uri/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Rev URL
Propchange: asterisk/trunk/tests/channels/pjsip/message/message_to_uri/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/channels/pjsip/message/message_to_uri/sipp/message.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/message/message_to_uri/sipp/message.xml?view=auto&rev=4434
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/message/message_to_uri/sipp/message.xml (added)
+++ asterisk/trunk/tests/channels/pjsip/message/message_to_uri/sipp/message.xml Wed Dec 11 14:30:20 2013
@@ -1,0 +1,25 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+
+<scenario name="Basic MESSAGE send and receive">
+ <send retrans="500">
+ <![CDATA[
+
+ MESSAGE sip:user1@[remote_ip]:[remote_port] SIP/2.0
+ Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+ From: user <sip:user@[local_ip]:[local_port]>;tag=[pid]SIPpTag00[call_number]
+ To: <sip:user1@[remote_ip]:[remote_port]>
+ Call-ID: [call_id]
+ CSeq: 1 MESSAGE
+ Max-Forwards: 70
+ Expires: 3600
+ Content-Type: text/plain
+ Content-Length: 18
+
+ Watson, come here.
+
+ ]]>
+ </send>
+
+ <recv response="202" rtd="true" />
+
+</scenario>
Propchange: asterisk/trunk/tests/channels/pjsip/message/message_to_uri/sipp/message.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/channels/pjsip/message/message_to_uri/sipp/message.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Rev URL
Propchange: asterisk/trunk/tests/channels/pjsip/message/message_to_uri/sipp/message.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/channels/pjsip/message/message_to_uri/sipp/message_recv.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/message/message_to_uri/sipp/message_recv.xml?view=auto&rev=4434
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/message/message_to_uri/sipp/message_recv.xml (added)
+++ asterisk/trunk/tests/channels/pjsip/message/message_to_uri/sipp/message_recv.xml Wed Dec 11 14:30:20 2013
@@ -1,0 +1,21 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+
+<scenario name="Basic MESSAGE send and receive">
+ <recv request="MESSAGE" crlf="true">
+ </recv>
+
+ <send>
+ <![CDATA[
+ SIP/2.0 202 Accepted
+ [last_Via:]
+ [last_From:]
+ [last_To:];tag=[call_number]
+ [last_Call-ID:]
+ [last_CSeq:]
+ Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
+ Supported: replaces, timer
+ Content-Length: 0
+
+ ]]>
+ </send>
+</scenario>
Propchange: asterisk/trunk/tests/channels/pjsip/message/message_to_uri/sipp/message_recv.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/channels/pjsip/message/message_to_uri/sipp/message_recv.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Rev URL
Propchange: asterisk/trunk/tests/channels/pjsip/message/message_to_uri/sipp/message_recv.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/channels/pjsip/message/message_to_uri/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/message/message_to_uri/test-config.yaml?view=auto&rev=4434
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/message/message_to_uri/test-config.yaml (added)
+++ asterisk/trunk/tests/channels/pjsip/message/message_to_uri/test-config.yaml Wed Dec 11 14:30:20 2013
@@ -1,0 +1,27 @@
+testinfo:
+ summary: 'Test a MESSAGE using the default outbound endpoint'
+ description: |
+ 'Send a SIP MESSAGE to Asterisk and once received use the dialplan
+ application MessageSend to send a MESSAGE to a receiver via a
+ direct URI.'
+
+properties:
+ minversion: '12'
+ dependencies:
+ - app : 'sipp'
+ - asterisk : 'res_pjsip'
+ - asterisk : 'res_pjsip_messaging'
+ tags:
+ - pjsip
+
+test-modules:
+ test-object:
+ config-section: test-object-config
+ typename: 'sipp.SIPpTestCase'
+
+test-object-config:
+ test-iterations:
+ -
+ scenarios:
+ - { 'key-args': { 'scenario':'message_recv.xml', '-p':'5062' } }
+ - { 'key-args': { 'scenario':'message.xml', '-p':'5061' } }
Propchange: asterisk/trunk/tests/channels/pjsip/message/message_to_uri/test-config.yaml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/channels/pjsip/message/message_to_uri/test-config.yaml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Rev URL
Propchange: asterisk/trunk/tests/channels/pjsip/message/message_to_uri/test-config.yaml
------------------------------------------------------------------------------
svn:mime-type = text/plain
More information about the asterisk-commits
mailing list