<blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">Usage of the "." pattern match at the end of the extension does<br>cause this to timeout. However, when I run that example, I can<br>still pattern match with "#" at the end, so there seems to just be<br>an issue with the "." operator, and needs to be early terminated<br>for this special case.</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">I think better to have a simple code</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">if (res == '#') {<br> exten[x] = 0;<br> break;<br>}</pre><p style="white-space: pre-wrap; word-wrap: break-word;">instead of more complicated and unobvious </p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">if (!ast_matchmore_extension(chan, arglist.context, exten, 1 /* priority */,<br> S_COR(ast_channel_caller(chan)->id.number.valid, ast_channel_caller(chan)->id.number.str, NULL))) {<br> if (!ast_exists_extension(chan, arglist.context, exten, 1,<br> S_COR(ast_channel_caller(chan)->id.number.valid, ast_channel_caller(chan)->id.number.str, NULL))<br> && res == '#') {<br> exten[x] = '\0';<br> }<br> break; <br>}</pre><p style="white-space: pre-wrap; word-wrap: break-word;">But for compatibility I added a new option</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/11387">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/11387">change 11387</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/asterisk/+/11387"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: If77c40c9c8b525885730821e768f5dea71cf04c1 </div>
<div style="display:none"> Gerrit-Change-Number: 11387 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Alexei Gradinari <alex2grad@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Alexei Gradinari <alex2grad@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Benjamin Keith Ford <bford@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 22 May 2019 14:52:33 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>