Asterisk 11 Hint Bug?

I am setting my hints via variables, however asterisk is not parsing the variable correctly.
It is storing the variable name as the hint. I saw a bug report and patch for 1.6 however Im not sure if a patch was applied to 11. ( issues.asterisk.org/jira/browse/ASTERISK-14977 )

code
[internal]
exten => _2XX,hint,${FQDN}

From Asterisk CLI
*CLI> core show hints

-= Registered Asterisk Dial Plan Hints =-
               _2XX@internal            : ${FQDN}               State:Unavailable     Watchers  0

Im I doing something wrong or is this a bug?

Howdy,

That issue was closed in favor of:
issues.asterisk.org/jira/browse/ASTERISK-15064

which indicates that for global variables, it was applied to trunk at the time, which means that code should be in 1.8 and all newer versions, as well as the branches listed on the other commit messages that you can see as comments on that ticket.

thanks Malcom for that however
I read both posts on dynamic hints via dialplan, pattern matching should work on the context side?
But for some reason it doesnt. Variables do work, but only if set with a static pattern context

I been testing different this and found the following

When I set a static exten context for pattern matching as in

exten => 200,hint,${DEVICE_GETHINT_DEVICE(${EXTEN})}
core show hints works

when I use pattern matching it fails, after I call that extension

exten => _2XX,hint,${DEVICE_GETHINT_DEVICE(${EXTEN})}
exten => _2XX,1,Dial(${DEVICE_GETHINT_DEVICE(${EXTEN}))

core show hints

-= Registered Asterisk Dial Plan Hints =-
               _2XX@internal            : ${DEVICE_GETHINT_DEV  State:Unavailable     Watchers  0

What is the problem, as someone mentioned in 1.8 dynamic
pattern matching is working just fine.

thanks
Zakir

Howdy,

I can’t think of anything that would have changed between 1.8 and 11 wrt hints.

DEVICE_GETHINT_DEVICE…what’s that? Is that a global variable defined in [globals]?