<p>Friendly Automation <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/testsuite/+/16106">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Joshua Colp: Looks good to me, but someone else must approve
Kevin Harwell: Looks good to me, but someone else must approve
George Joseph: Looks good to me, approved
Friendly Automation: Approved for Submit
</div><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;"><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><div style="white-space:pre-wrap"></div><p>To view, visit <a href="https://gerrit.asterisk.org/c/testsuite/+/16106">change 16106</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/+/16106"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: testsuite </div>
<div style="display:none"> Gerrit-Branch: 18 </div>
<div style="display:none"> Gerrit-Change-Id: I32f594407abc4c6a71cbae482328697d43f9ca28 </div>
<div style="display:none"> Gerrit-Change-Number: 16106 </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-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>