<blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">Patch Set 1:</p><p style="white-space: pre-wrap; word-wrap: break-word;">Wouldn't it be better to make Dial tolerant of empty dial strings and empty list positions?<br>For example:<br>Dial(,20,g)<br>Dial(PJSIP/101&,20,g)<br>Dial(PJSIP/101&&PJSIP/102,20,g)</p><p style="white-space: pre-wrap; word-wrap: break-word;">It would certainly simplify a lot of dialplan that has to check for these conditions.</p><p style="white-space: pre-wrap; word-wrap: break-word;">If there winds up being no endpoints to dial then Dial continues in dialplan as if the endpoint didn't answer with DIALSTATUS set to NOANSWER or maybe a new value like NOENDPOINT or NODESTINATION.</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">The documentation for DIALSTATUS in app_dial.c lists 'INVALIDARGS' as one of the possible values, I think this makes the most sense for Dial(,20,g) or Dial(&,20,g).</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/13349">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/13349">change 13349</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/+/13349"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I1709ee211705edac4d93f55723b8153bb653a338 </div>
<div style="display:none"> Gerrit-Change-Number: 13349 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: cmaj <chris@penguinpbx.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: Sean Bright <sean.bright@gmail.com> </div>
<div style="display:none"> Gerrit-CC: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-CC: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 03 Dec 2019 23:04:42 +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>