<p>Michael Bradeen has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/testsuite/+/19245">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">user_eq_phone: Add privacy headers to test<br><br>In order to test that the user=phone flag is being added correctly, we<br>need to send a non-anonymous invite with send privacy flags enabled.<br><br>ASTERISK-30178<br><br>Change-Id: I0f3cff8f6a443229718b635d20c53273c06797a4<br>---<br>M tests/channels/pjsip/user_eq_phone/configs/ast1/extensions.conf<br>M tests/channels/pjsip/user_eq_phone/configs/ast1/pjsip.conf<br>M tests/channels/pjsip/user_eq_phone/sipp/uas.xml<br>3 files changed, 41 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/45/19245/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/tests/channels/pjsip/user_eq_phone/configs/ast1/extensions.conf b/tests/channels/pjsip/user_eq_phone/configs/ast1/extensions.conf</span><br><span>index e857f91..0ee8e0f 100644</span><br><span>--- a/tests/channels/pjsip/user_eq_phone/configs/ast1/extensions.conf</span><br><span>+++ b/tests/channels/pjsip/user_eq_phone/configs/ast1/extensions.conf</span><br><span>@@ -1,5 +1,7 @@</span><br><span> [default]</span><br><span> </span><br><span> exten => s,1,NoOp()</span><br><span style="color: hsl(120, 100%, 40%);">+ same => n,Set(CALLERID(num)=5550113)</span><br><span style="color: hsl(120, 100%, 40%);">+ same => n,Set(CALLERID(name)=Homer)</span><br><span>  same => n,Dial(PJSIP/+12568675309@jenny)</span><br><span>  same => n,Hangup()</span><br><span>diff --git a/tests/channels/pjsip/user_eq_phone/configs/ast1/pjsip.conf b/tests/channels/pjsip/user_eq_phone/configs/ast1/pjsip.conf</span><br><span>index f810a59..1e77193 100644</span><br><span>--- a/tests/channels/pjsip/user_eq_phone/configs/ast1/pjsip.conf</span><br><span>+++ b/tests/channels/pjsip/user_eq_phone/configs/ast1/pjsip.conf</span><br><span>@@ -14,6 +14,8 @@</span><br><span> allow=!all,ulaw,alaw,g722</span><br><span> user_eq_phone=yes</span><br><span> aors=jenny</span><br><span style="color: hsl(120, 100%, 40%);">+send_pai=yes</span><br><span style="color: hsl(120, 100%, 40%);">+send_rpid=yes</span><br><span> </span><br><span> [jenny]</span><br><span> type=aor</span><br><span>diff --git a/tests/channels/pjsip/user_eq_phone/sipp/uas.xml b/tests/channels/pjsip/user_eq_phone/sipp/uas.xml</span><br><span>index 3062dcf..ba79ddf 100644</span><br><span>--- a/tests/channels/pjsip/user_eq_phone/sipp/uas.xml</span><br><span>+++ b/tests/channels/pjsip/user_eq_phone/sipp/uas.xml</span><br><span>@@ -11,13 +11,34 @@</span><br><span>               search_in="hdr"</span><br><span>               check_it="true"</span><br><span>               assign_to="remote_tag"/></span><br><span style="color: hsl(0, 100%, 40%);">-          <ereg regexp=".*;user=phone.*"</span><br><span style="color: hsl(120, 100%, 40%);">+          <!-- Check the R-URI, To, >From and Priv headers for the tag--></span><br><span style="color: hsl(120, 100%, 40%);">+          <ereg regexp=".*;user=phone SIP.*"</span><br><span>               search_in="msg"</span><br><span>               check_it="true"</span><br><span>               assign_to="1"/></span><br><span style="color: hsl(120, 100%, 40%);">+          <ereg regexp=".*;user=phone.*"</span><br><span style="color: hsl(120, 100%, 40%);">+              search_in="hdr"</span><br><span style="color: hsl(120, 100%, 40%);">+              check_it="true"</span><br><span style="color: hsl(120, 100%, 40%);">+              header="From"</span><br><span style="color: hsl(120, 100%, 40%);">+              assign_to="2"/></span><br><span style="color: hsl(120, 100%, 40%);">+          <ereg regexp=".*;user=phone.*"</span><br><span style="color: hsl(120, 100%, 40%);">+              search_in="hdr"</span><br><span style="color: hsl(120, 100%, 40%);">+              check_it="true"</span><br><span style="color: hsl(120, 100%, 40%);">+              header="To"</span><br><span style="color: hsl(120, 100%, 40%);">+              assign_to="3"/></span><br><span style="color: hsl(120, 100%, 40%);">+          <ereg regexp=".*;user=phone.*"</span><br><span style="color: hsl(120, 100%, 40%);">+              search_in="hdr"</span><br><span style="color: hsl(120, 100%, 40%);">+              check_it="true"</span><br><span style="color: hsl(120, 100%, 40%);">+              header="P-Asserted-Identity"</span><br><span style="color: hsl(120, 100%, 40%);">+              assign_to="4"/></span><br><span style="color: hsl(120, 100%, 40%);">+          <ereg regexp=".*;user=phone.*"</span><br><span style="color: hsl(120, 100%, 40%);">+              search_in="hdr"</span><br><span style="color: hsl(120, 100%, 40%);">+              check_it="true"</span><br><span style="color: hsl(120, 100%, 40%);">+              header="Remote-Party-ID"</span><br><span style="color: hsl(120, 100%, 40%);">+              assign_to="5"/></span><br><span>       </action></span><br><span>   </recv></span><br><span style="color: hsl(0, 100%, 40%);">-  <Reference variables="1" /></span><br><span style="color: hsl(120, 100%, 40%);">+  <Reference variables="1,2,3,4,5" /></span><br><span> </span><br><span>   <send retrans="500"></span><br><span>     <![CDATA[</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/testsuite/+/19245">change 19245</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/+/19245"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: testsuite </div>
<div style="display:none"> Gerrit-Branch: 20 </div>
<div style="display:none"> Gerrit-Change-Id: I0f3cff8f6a443229718b635d20c53273c06797a4 </div>
<div style="display:none"> Gerrit-Change-Number: 19245 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Michael Bradeen <mbradeen@sangoma.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>