[Asterisk-code-review] func_lookup: Fork of HINT function (asterisk[master])

George Joseph asteriskteam at digium.com
Mon Aug 2 12:46:52 CDT 2021


Attention is currently required from: N A.
George Joseph has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/16075 )

Change subject: func_lookup: Fork of HINT function
......................................................................


Patch Set 9:

(1 comment)

Patchset:

PS9: 
> For instance, say you want to pass five lookups into an application without first saving them as variables. This is not possible when Gosub becomes involved.

I don't understand.  Gosub(mlookup,s,1(arg1,arg2,arg3))
function mlookup(ctx,exten)
	firstarg=channel['ARG1']:get()
	secondargarg=channel['ARG1']:get()
etc.

> 
> EVAL will also parse EXTEN as the extension of the calling context, not the called context, making EVAL unsuitable as well.

It'll be set to whatever you set in the Gosub...
Gosub(mlookup,${EXTEN},1(arg1,arg2,arg3)



-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/16075
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: Iad81019689674c9f4ac77d235f5d7234adbb1432
Gerrit-Change-Number: 16075
Gerrit-PatchSet: 9
Gerrit-Owner: N A <mail at interlinked.x10host.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: Sarah Autumn <sarah at endlesstemple.org>
Gerrit-Attention: N A <mail at interlinked.x10host.com>
Gerrit-Comment-Date: Mon, 02 Aug 2021 17:46:52 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: N A <mail at interlinked.x10host.com>
Comment-In-Reply-To: George Joseph <gjoseph at digium.com>
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20210802/f7908693/attachment.html>


More information about the asterisk-code-review mailing list