<p>Jenkins2 <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/6365">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Joshua Colp: Looks good to me, approved
  Jenkins2: Approved for Submit

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">tel_uri: Add a test for TEL URI functionality for inbound calls<br><br>ASTERISK-27152<br><br>Change-Id: Ib8dbd2ddb920c0d5c346569dd7a1eba824e95dd5<br>---<br>A tests/channels/pjsip/tel_uri/configs/ast1/extensions.conf<br>A tests/channels/pjsip/tel_uri/configs/ast1/pjsip.conf<br>A tests/channels/pjsip/tel_uri/sipp/tel_uac.xml<br>A tests/channels/pjsip/tel_uri/test-config.yaml<br>M tests/channels/pjsip/tests.yaml<br>5 files changed, 81 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/tests/channels/pjsip/tel_uri/configs/ast1/extensions.conf b/tests/channels/pjsip/tel_uri/configs/ast1/extensions.conf<br>new file mode 100644<br>index 0000000..8dae664<br>--- /dev/null<br>+++ b/tests/channels/pjsip/tel_uri/configs/ast1/extensions.conf<br>@@ -0,0 +1,2 @@<br>+[default]<br>+<br>diff --git a/tests/channels/pjsip/tel_uri/configs/ast1/pjsip.conf b/tests/channels/pjsip/tel_uri/configs/ast1/pjsip.conf<br>new file mode 100644<br>index 0000000..e791d94<br>--- /dev/null<br>+++ b/tests/channels/pjsip/tel_uri/configs/ast1/pjsip.conf<br>@@ -0,0 +1,18 @@<br>+[transport]<br>+type=transport<br>+bind=0.0.0.0<br>+protocol=udp<br>+<br>+[1000]<br>+type=aor<br>+<br>+[1000]<br>+type=endpoint<br>+direct_media=no<br>+allow=!all,ulaw<br>+aors=1000<br>+<br>+[1000]<br>+type=identify<br>+endpoint=1000<br>+match=127.0.0.1<br>diff --git a/tests/channels/pjsip/tel_uri/sipp/tel_uac.xml b/tests/channels/pjsip/tel_uri/sipp/tel_uac.xml<br>new file mode 100644<br>index 0000000..29c30b1<br>--- /dev/null<br>+++ b/tests/channels/pjsip/tel_uri/sipp/tel_uac.xml<br>@@ -0,0 +1,34 @@<br>+<?xml version="1.0" encoding="ISO-8859-1" ?><br>+<!DOCTYPE scenario SYSTEM "sipp.dtd"><br>+<br>+<scenario name="Basic Sipstone UAC"><br>+  <send retrans="500"><br>+    <![CDATA[<br>+<br>+      INVITE tel:+1000;phone-context=foo.com SIP/2.0<br>+      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]<br>+      From: <tel:1000;phone-context=+1555>;tag=[pid]SIPpTag00[call_number]<br>+      To: sut <tel:+15558675309><br>+      Call-ID: [call_id]<br>+      CSeq: 1 INVITE<br>+      Contact: sip:sipp@[local_ip]:[local_port]<br>+      Max-Forwards: 70<br>+      Subject: Performance Test<br>+      Content-Type: application/sdp<br>+      Content-Length: [len]<br>+<br>+      v=0<br>+      o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]<br>+      s=-<br>+      c=IN IP[media_ip_type] [media_ip]<br>+      t=0 0<br>+      m=audio [media_port] RTP/AVP 0<br>+      a=rtpmap:0 PCMU/8000<br>+<br>+    ]]><br>+  </send><br>+<br>+  <recv response="416" /> <!-- Unsupported URI Scheme --><br>+<br>+</scenario><br>+<br>diff --git a/tests/channels/pjsip/tel_uri/test-config.yaml b/tests/channels/pjsip/tel_uri/test-config.yaml<br>new file mode 100644<br>index 0000000..eb5e6d7<br>--- /dev/null<br>+++ b/tests/channels/pjsip/tel_uri/test-config.yaml<br>@@ -0,0 +1,26 @@<br>+testinfo:<br>+    summary: 'TEL URI support in basic inbound calls'<br>+    description: |<br>+        This test verifies that TEL URIs are appropriately handled in a basic<br>+        incoming call situation.<br>+<br>+properties:<br>+    minversion: ['13.17.1', '14.6.1']<br>+    dependencies:<br>+        - python : 'twisted'<br>+        - python : 'starpy'<br>+        - app : 'sipp'<br>+        - asterisk : 'res_pjsip'<br>+    tags:<br>+        - pjsip<br>+<br>+test-modules:<br>+    test-object:<br>+        config-section: sipp-config<br>+        typename: 'sipp.SIPpTestCase'<br>+<br>+sipp-config:<br>+    test-iterations:<br>+        -<br>+            scenarios:<br>+                - { 'key-args': {'scenario': 'tel_uac.xml', '-p': '5061'} }<br>diff --git a/tests/channels/pjsip/tests.yaml b/tests/channels/pjsip/tests.yaml<br>index 54ff285..a25007f 100644<br>--- a/tests/channels/pjsip/tests.yaml<br>+++ b/tests/channels/pjsip/tests.yaml<br>@@ -54,3 +54,4 @@<br>     - test: 'cseq_method'<br>     - test: 'multipart_empty_part'<br>     - test: 'dtmf_info_fallback'<br>+    - test: 'tel_uri'<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6365">change 6365</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/6365"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: testsuite </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: Ib8dbd2ddb920c0d5c346569dd7a1eba824e95dd5 </div>
<div style="display:none"> Gerrit-Change-Number: 6365 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>