<p>Richard Mudgett <strong>uploaded patch set #3</strong> to this change.</p><p><a href="https://gerrit.asterisk.org/9718">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip_endpoint_identifier_ip.c: Added regex support to match_header<br><br>This patch adds regular expression support to make the identify section's<br>match_header option more useful when attempting to match complex headers<br>like the 'To' or 'From' headers. The 'From' header has variable<br>components such as the tag parameter that you cannot predict. To specify<br>a regular expression put slashes around the regular expression in place of<br>the header value.<br><br>[identify-alice]<br>type=identify<br>endpoint=alice<br>match_header=From: /<sip:alice@127\\.0\\.0\\.1>/<br><br>* Added regex support to match_header so you could match a 'To' header<br>among other complex headers.<br><br>Fixed reported crashes when trying to match special headers like 'Contact'.<br>The identify section's match_header method used code that assumed you were<br>matching a generic header. Any other type of header could cause a crash<br>if the header structure variant did not match the generic header enough.<br><br>* Made use code that will work for any header type instead of code<br>specific to generic headers.<br><br>Other fixes while in the area:<br><br>* Made check all headers of the requested name.<br>* Added some more sanity checks to the configured identify matching<br>options when applying the configuration.<br><br>ASTERISK-27548<br><br>Change-Id: I27dfd4ff5e2259b906640e3c330681b76b4ed1f1<br>---<br>M CHANGES<br>M res/res_pjsip_endpoint_identifier_ip.c<br>2 files changed, 125 insertions(+), 38 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/18/9718/3</pre><p>To view, visit <a href="https://gerrit.asterisk.org/9718">change 9718</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/9718"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>
<div style="display:none"> Gerrit-Change-Id: I27dfd4ff5e2259b906640e3c330681b76b4ed1f1 </div>
<div style="display:none"> Gerrit-Change-Number: 9718 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>