<p> Attention is currently required from: George Joseph. </p>
<p><a href="https://gerrit.asterisk.org/c/asterisk/+/16075">View Change</a></p><p>1 comment:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="null">Patchset:</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/+/16075?tab=comments">Patch Set #9:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">> For instance, say you want to pass five lookups into an application without first saving them as v […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">If I'm understanding it right, this seems to be oriented around fetching a value from the DB and parsing it.</p><p style="white-space: pre-wrap; word-wrap: break-word;">e.g. NoOp(${EVAL(${DB(something/1234)})})</p><p style="white-space: pre-wrap; word-wrap: break-word;">I'm not sure I understand how this is a general dialplan value lookup tool. Say I want whatever's at priority 1 here:<br>exten => s,1,NoOp()<br>same => n,Answer</p><p style="white-space: pre-wrap; word-wrap: break-word;">... same => n,NoOp(${LOOKUP(s@test)}) or maybe NoOp(${LOOKUP(test,s,1)})</p><p style="white-space: pre-wrap; word-wrap: break-word;">Gosub itself has no mechanism to get dialplan values, other than using other functions. Additionally, it's designed to do something, not return a value, which makes it clunky.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Something like this being possible is more the idea: MyApp(${LOOKUP(3@test-context)},${LOOKUP(${CALLERID(num)},something,${LOOKUP(${LOOKUP(test,s,${EPOCH})}@something-else)}).</p><p style="white-space: pre-wrap; word-wrap: break-word;">An EVAL wrapper around DB is a bit short of the goal. If it was named ${DIALPLAN_VALUE()} perhaps the intent might be a little clearer. Just like DB gets something from AstDB, this gets something in the dialplan.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/16075">change 16075</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/+/16075"/><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: Iad81019689674c9f4ac77d235f5d7234adbb1432 </div>
<div style="display:none"> Gerrit-Change-Number: 16075 </div>
<div style="display:none"> Gerrit-PatchSet: 9 </div>
<div style="display:none"> Gerrit-Owner: N A <mail@interlinked.x10host.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-Reviewer: Sarah Autumn <sarah@endlesstemple.org> </div>
<div style="display:none"> Gerrit-Attention: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 02 Aug 2021 18:23:18 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: N A <mail@interlinked.x10host.com> </div>
<div style="display:none"> Comment-In-Reply-To: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>