<p>Richard Mudgett has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/9722">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">channels/pjsip/identify/header: Add regex test cases<br><br>ASTERISK-27548<br><br>Change-Id: I5d1e132b668bd02f5a88ef1d1ef066a919564da8<br>---<br>M tests/channels/pjsip/identify/header/configs/ast1/pjsip.conf<br>M tests/channels/pjsip/identify/header/test-config.yaml<br>2 files changed, 14 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/22/9722/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/tests/channels/pjsip/identify/header/configs/ast1/pjsip.conf b/tests/channels/pjsip/identify/header/configs/ast1/pjsip.conf</span><br><span>index 13226b7..035dc94 100644</span><br><span>--- a/tests/channels/pjsip/identify/header/configs/ast1/pjsip.conf</span><br><span>+++ b/tests/channels/pjsip/identify/header/configs/ast1/pjsip.conf</span><br><span>@@ -1,3 +1,7 @@</span><br><span style="color: hsl(120, 100%, 40%);">+[global]</span><br><span style="color: hsl(120, 100%, 40%);">+type=global</span><br><span style="color: hsl(120, 100%, 40%);">+debug=yes</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> [system]</span><br><span> type=system</span><br><span> timer_t1=100</span><br><span>@@ -21,6 +25,10 @@</span><br><span> [identify-template](!)</span><br><span> type=identify</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-[alice-identify](identify-template)</span><br><span style="color: hsl(120, 100%, 40%);">+[alice-identify-literal](identify-template)</span><br><span> endpoint=alice</span><br><span> match_header=X-ASTERISK-TOKEN: e7657250-07fa-11e7-92f8-1b946c0c7e84</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+[alice-identify-regex](identify-template)</span><br><span style="color: hsl(120, 100%, 40%);">+endpoint=alice</span><br><span style="color: hsl(120, 100%, 40%);">+match_header=X-ASTERISK-TOKEN: /Win.*caca/</span><br><span>diff --git a/tests/channels/pjsip/identify/header/test-config.yaml b/tests/channels/pjsip/identify/header/test-config.yaml</span><br><span>index bc6971d..b4ca25c 100644</span><br><span>--- a/tests/channels/pjsip/identify/header/test-config.yaml</span><br><span>+++ b/tests/channels/pjsip/identify/header/test-config.yaml</span><br><span>@@ -21,9 +21,11 @@</span><br><span>             scenarios:</span><br><span>                 - { 'key-args': {'scenario': 'nominal.xml', '-i': '127.0.0.1', '-p': '5061', '-s': 's'},</span><br><span>                     'ordered-args': ['-key', 'ident_key', 'e7657250-07fa-11e7-92f8-1b946c0c7e84'] }</span><br><span style="color: hsl(0, 100%, 40%);">-                - { 'key-args': {'scenario': 'off-nominal.xml', '-i': '127.0.0.1', '-p': '5062', '-s': 's'},</span><br><span style="color: hsl(0, 100%, 40%);">-                    'ordered-args': ['-key', 'ident_key', 'derp'] }</span><br><span style="color: hsl(120, 100%, 40%);">+                - { 'key-args': {'scenario': 'nominal.xml', '-i': '127.0.0.1', '-p': '5062', '-s': 's'},</span><br><span style="color: hsl(120, 100%, 40%);">+                    'ordered-args': ['-key', 'ident_key', 'Camp Winipcaca summer vacation'] }</span><br><span>                 - { 'key-args': {'scenario': 'off-nominal.xml', '-i': '127.0.0.1', '-p': '5063', '-s': 's'},</span><br><span style="color: hsl(120, 100%, 40%);">+                    'ordered-args': ['-key', 'ident_key', 'derp'] }</span><br><span style="color: hsl(120, 100%, 40%);">+                - { 'key-args': {'scenario': 'off-nominal.xml', '-i': '127.0.0.1', '-p': '5064', '-s': 's'},</span><br><span>                     'ordered-args': ['-key', 'ident_key', ''] }</span><br><span> </span><br><span> </span><br><span>@@ -33,5 +35,6 @@</span><br><span>             version : 'v3.0'</span><br><span>         - asterisk : 'app_echo'</span><br><span>         - asterisk : 'res_pjsip'</span><br><span style="color: hsl(120, 100%, 40%);">+        - asterisk : 'res_pjsip_endpoint_identifier_ip'</span><br><span>     tags:</span><br><span>         - pjsip</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/9722">change 9722</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/9722"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: testsuite </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I5d1e132b668bd02f5a88ef1d1ef066a919564da8 </div>
<div style="display:none"> Gerrit-Change-Number: 9722 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Richard Mudgett <rmudgett@digium.com> </div>