[asterisk-bugs] [JIRA] (ASTERISK-29486) Hint-like extension value lookup function without device state

N A (JIRA) noreply at issues.asterisk.org
Wed Aug 4 12:13:33 CDT 2021


    [ https://issues.asterisk.org/jira/browse/ASTERISK-29486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=255781#comment-255781 ] 

N A commented on ASTERISK-29486:
--------------------------------

Hmm... it's certainly nicer than what exists currently, and would address some of the issues, but not everything.

Part of the reason LOOKUP is flexible is that it accesses the actual value from the dialplan. CALL_SUB would allow working with static things a user defined or other functions, but the other aspect of being able to retrieve what is actually an arbitrary priority is missing here, since it locks into the GoSub framework of returning something at priority 1. LOOKUP is closer to HINT than GoSub in design.
Performance-wise, GoSub incurs a relatively large cost, so if you had, say, ten of these passed into one application, it would take ten times longer to evaluate everything than with LOOKUP, since it just does so much other stuff we don't need. Probably less of a consideration than how it actually works, and what it does, but something to keep in mind perhaps.

So, CALL_SUB would solve some of the problems that motivated LOOKUP, but it's not quite as flexible or versatile, in my opinion. As LOOKUP would be just a function, wouldn't that also be equally accessible from Lua/AEL?

> Hint-like extension value lookup function without device state
> --------------------------------------------------------------
>
>                 Key: ASTERISK-29486
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29486
>             Project: Asterisk
>          Issue Type: New Feature
>      Security Level: None
>          Components: Functions/NewFeature
>    Affects Versions: 18.4.0
>            Reporter: N A
>            Assignee: N A
>
> This is a new function that works like the HINT function, only a separate priority is used so that device state overhead is not added. This can provide a mechanism for a fast, efficient, and clean extension value lookup in the dialplan using native core extension pattern matching capabilities to retrieve extension values, including substituting variables.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list