Asterisk 16.9 Function HINT With Option N Does Not Return Anything

Home » Asterisk Users » Asterisk 16.9 Function HINT With Option N Does Not Return Anything
Asterisk Users 2 Comments

Hello !

Is there something wrong with the function HINT(,n) ?
Note the param n – it is supposed to get (as far as I understand the documentation) CALLERID(name) of the extension (via extension’s hint).

Example configuration:

pjsip.conf:

[10]
type=endopoint
.
. callerid = Test extension <10>
.
. extensions.conf:

[exts]

exten => 10,hint,PJSIP/10
exten => 10,1,Set(DEV=${HINT(10@exts)})
exten => 10,n,Set(DEVNAME=${HINT(10@exts,n)})
exten => 10,n,Noop(DEV is ${DEV})
exten => 10,n,Noop(DEVNAME is ${DEVNAME})

on asterisk 16.9.0:
– first noop prints: DEV is PJSIP/10
– second noop prints: DEVNAME is

Way I understand the documentation for function HINT, I would expect the DEVNAME variable to be set to “Test extension”.

Any “light” on this topic would be much appreciated. Thanks.

Regards,
Nenad Radosavljevic

2 thoughts on - Asterisk 16.9 Function HINT With Option N Does Not Return Anything

  • Thanks Joshua !

    I was not aware that extension’s hint in dialplan can have additional data in the parentheses – it might be worth adding that info to wiki.

    documentation) CALLERID(name) of the extension (via extension’s hint). DEVNAME variable to be set to “Test extension”.