<p>George Joseph has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/testsuite/+/16069">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">message_destination_parsing: Add test for contact with user<br><br>Change-Id: I32f594407abc4c6a71cbae482328697d43f9ca28<br>---<br>M tests/channels/pjsip/message/message_destination_parsing/configs/ast1/pjsip.conf<br>M tests/channels/pjsip/message/message_destination_parsing/test-config.yaml<br>2 files changed, 15 insertions(+), 3 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/69/16069/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/tests/channels/pjsip/message/message_destination_parsing/configs/ast1/pjsip.conf b/tests/channels/pjsip/message/message_destination_parsing/configs/ast1/pjsip.conf</span><br><span>index 619401c..b0aed0b 100644</span><br><span>--- a/tests/channels/pjsip/message/message_destination_parsing/configs/ast1/pjsip.conf</span><br><span>+++ b/tests/channels/pjsip/message/message_destination_parsing/configs/ast1/pjsip.conf</span><br><span>@@ -36,7 +36,7 @@</span><br><span> </span><br><span> [sipp_contact_user]</span><br><span> type=aor</span><br><span style="color: hsl(0, 100%, 40%);">-contact=sip:someuser@127.0.0.2:5062</span><br><span style="color: hsl(120, 100%, 40%);">+contact=sip:someuser@127.0.0.2:5061</span><br><span> max_contacts=1</span><br><span> </span><br><span> [sipp_contact_user]</span><br><span>diff --git a/tests/channels/pjsip/message/message_destination_parsing/test-config.yaml b/tests/channels/pjsip/message/message_destination_parsing/test-config.yaml</span><br><span>index adc4fbc..d36aac8 100644</span><br><span>--- a/tests/channels/pjsip/message/message_destination_parsing/test-config.yaml</span><br><span>+++ b/tests/channels/pjsip/message/message_destination_parsing/test-config.yaml</span><br><span>@@ -35,7 +35,7 @@</span><br><span>              # scenarios end.</span><br><span>                 - { 'key-args': { 'scenario':'message_recv.xml', '-i': '127.0.0.2', '-p':'5060', '-m':'6' },</span><br><span>                     'ordered-args': [ '-bind_local' ] }</span><br><span style="color: hsl(0, 100%, 40%);">-                - { 'key-args': { 'scenario':'message_recv.xml', '-i': '127.0.0.2', '-p':'5061', '-m':'4' },</span><br><span style="color: hsl(120, 100%, 40%);">+                - { 'key-args': { 'scenario':'message_recv.xml', '-i': '127.0.0.2', '-p':'5061', '-m':'5' },</span><br><span>                     'ordered-args': [ '-bind_local' ] }</span><br><span>                 - { 'key-args': { 'scenario':'message_recv.xml', '-i': '127.0.0.2', '-p':'5062', '-m':'5' },</span><br><span>                     'ordered-args': [ '-bind_local' ] }</span><br><span>@@ -235,8 +235,10 @@</span><br><span>             Event: 'TestEvent', State: 'MSG_FROMTO_URI' } }, count: 1 }</span><br><span> </span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-        # The final test is for the dialstring format</span><br><span style="color: hsl(120, 100%, 40%);">+        # The final tests are for the dialstring format</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+        # Simple <number>@<endpoint> where the endpoint's contact</span><br><span style="color: hsl(120, 100%, 40%);">+        # doesn't have a user in its URI.</span><br><span>         ami-actions: { action: { To: 'pjsip:PJSIP/8005551212@sipp',</span><br><span>             Body: 'Test Message', Action: 'MessageSend', ActionID: '12361' } }</span><br><span>     -   ami-events: { conditions: { match: { Endpoint: 'sipp',</span><br><span>@@ -244,3 +246,13 @@</span><br><span>             MdataDestination: '^PJSIP/8005551212@sipp$',</span><br><span>             Event: 'TestEvent', State: 'MSG_FROMTO_URI' } }, count: 1 }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+        # <number>@<endpoint> where the endpoint's contact</span><br><span style="color: hsl(120, 100%, 40%);">+        # has a user and port in its URI.  The existing user should be</span><br><span style="color: hsl(120, 100%, 40%);">+        # replaced by the number specified.</span><br><span style="color: hsl(120, 100%, 40%);">+        ami-actions: { action: { To: 'pjsip:PJSIP/8005551212@sipp_contact_user',</span><br><span style="color: hsl(120, 100%, 40%);">+            Body: 'Test Message', Action: 'MessageSend', ActionID: '12362' } }</span><br><span style="color: hsl(120, 100%, 40%);">+    -   ami-events: { conditions: { match: { Endpoint: 'sipp_contact_user',</span><br><span style="color: hsl(120, 100%, 40%);">+            RequestURI: 'sip:8005551212@127.0.0.2:5061',</span><br><span style="color: hsl(120, 100%, 40%);">+            MdataDestination: '^PJSIP/8005551212@sipp_contact_user$',</span><br><span style="color: hsl(120, 100%, 40%);">+            Event: 'TestEvent', State: 'MSG_FROMTO_URI' } }, count: 1 }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/testsuite/+/16069">change 16069</a>. To unsubscribe, or for help writing mail filters, 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/c/testsuite/+/16069"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: testsuite </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: I32f594407abc4c6a71cbae482328697d43f9ca28 </div>
<div style="display:none"> Gerrit-Change-Number: 16069 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>