<p style="white-space: pre-wrap; word-wrap: break-word;">Not sold on 'never_empty' but 'please' is not great. Someone else might have a better idea.</p><p>Patch set 1:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4; color: #000000;">Code-Review -1</span></p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/13349">View Change</a></p><p>5 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.asterisk.org/c/asterisk/+/13349/1/channels/pjsip/dialplan_functions.c">File channels/pjsip/dialplan_functions.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/13349/1/channels/pjsip/dialplan_functions.c@47">Patch Set #1, Line 47:</a> <code style="font-family:monospace,monospace">         <parameter name="please" required="false"></code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I'm anti-"please." How about 'never_empty' or something else that is more descriptive?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/13349/1/channels/pjsip/dialplan_functions.c@48">Patch Set #1, Line 48:</a> <code style="font-family:monospace,monospace">                       <para>Optional return of 'PJSIP/endpoint' if no contacts are found. Otherwise, with no contacts, this function will return an empty string that will cause the Dial application to exit with an error and hang up the call.</para></code></p><p style="white-space: pre-wrap; word-wrap: break-word;">This needs appropriate line wrapping.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/13349/1/channels/pjsip/dialplan_functions.c@1007">Patch Set #1, Line 1007:</a> <code style="font-family:monospace,monospace">                        ast_log(LOG_WARNING, "Specified endpoint '%s' was not found but the 'please' argument was provided so keeping calm and carrying on\n", args.endpoint_name);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">If you've provided the argument, this is a non-exceptional situation so we don't need a warning. Drop it down to an ast_debug, and change the message to something like "... was provided so using PJSIP/%s"</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/13349/1/channels/pjsip/dialplan_functions.c@1061">Patch Set #1, Line 1061:</a> <code style="font-family:monospace,monospace">        if (ast_str_strlen(dial) == 0 && !ast_strlen_zero(args.please)) {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">!ast_str_strlen(dial)</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/13349/1/channels/pjsip/dialplan_functions.c@1062">Patch Set #1, Line 1062:</a> <code style="font-family:monospace,monospace">             ast_log(LOG_WARNING, "No current Contacts found for endpoint '%s' but the 'please' argument was provided so keeping calm and carrying on\n", args.endpoint_name);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">If you've provided the argument, this is a non-exceptional situation so we don't need a warning. Drop it down to an ast_debug, and change the message to something like "... was provided so using PJSIP/%s"</p></li></ul></li></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: Sean Bright <sean.bright@gmail.com> </div>
<div style="display:none"> Gerrit-CC: Friendly Automation </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 03 Dec 2019 22:03:27 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: Yes </div>
<div style="display:none"> Gerrit-MessageType: comment </div>